Branch: Tag:

2000-08-22

2000-08-22 23:30:18 by Per Hedbor <ph@opera.com>

Keep failed URLs around as well (to be unregistered later on)

Rev: server/base_server/configuration.pike:1.349
Rev: server/base_server/roxen.pike:1.532

1:   // A vitual server's main configuration   // Copyright © 1996 - 2000, Roxen IS.    - constant cvs_version = "$Id: configuration.pike,v 1.348 2000/08/22 22:57:24 per Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.349 2000/08/22 23:30:18 per Exp $";   constant is_configuration = 1;   #include <module.h>   #include <module_constants.h>
2002:    return !!stat_file(virt_path, id);   }    - array registered_urls = ({}); + array registered_urls = ({}), failed_urls = ({ });   array do_not_log_patterns = 0;   void start(int num)   {    // Note: This is run as root if roxen is started as root    foreach( registered_urls, string url )    roxen.unregister_url( url ); -  +  foreach( failed_urls, string url ) +  roxen.unregister_url( url );       registered_urls = ({ }); -  +  failed_urls = ({ });       foreach( query( "URLs" ), string url )    if( roxen.register_url( url, this_object() ) )    registered_urls += ({ url }); -  +  else +  failed_urls += ({ url });    if( !datacache )    datacache = DataCache( );    else