Branch: Tag:

2000-08-22

2000-08-22 22:57:24 by Per Hedbor <ph@opera.com>

First close all ports, then open the new ones. Solves [Bug 54 (#54)]

Rev: server/base_server/configuration.pike:1.348

1:   // A vitual server's main configuration   // Copyright © 1996 - 2000, Roxen IS.    - constant cvs_version = "$Id: configuration.pike,v 1.347 2000/08/22 22:48:53 per Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.348 2000/08/22 22:57:24 per Exp $";   constant is_configuration = 1;   #include <module.h>   #include <module_constants.h>
214:    destruct(m);    }(function_object(log_function)));    foreach( registered_urls, string url ) -  roxen->unregister_url(url); +  roxen.unregister_url(url);   }      public string type_from_filename( string file, int|void to, string|void myext )
2007:   void start(int num)   {    // Note: This is run as root if roxen is started as root -  foreach( registered_urls-query("URLs"), string url ) -  { -  registered_urls -= ({ url }); -  roxenp()->unregister_url( url ); -  } -  foreach( query( "URLs" )-registered_urls, string url ) -  { +  foreach( registered_urls, string url ) +  roxen.unregister_url( url ); +  +  registered_urls = ({ }); +  +  foreach( query( "URLs" ), string url ) +  if( roxen.register_url( url, this_object() ) )    registered_urls += ({ url }); -  roxenp()->register_url( url, this_object() ); -  } +     if( !datacache )    datacache = DataCache( );    else