Roxen.git/
server/
base_server/
configuration.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2000-09-01
2000-09-01 14:10:45 by Per Hedbor <ph@opera.com>
5d6c8d3ba2056d67f6af49b130a3915b2cd4d952 (
14
lines) (+
8
/-
6
)
[
Show
|
Annotate
]
Branch:
5.2
Do not open/close ports when it's not nessesary
Rev: server/base_server/configuration.pike:1.359
1:
// A vitual server's main configuration // Copyright © 1996 - 2000, Roxen IS.
-
constant cvs_version = "$Id: configuration.pike,v 1.
358
2000/09/01
13
:
46
:
42
per Exp $";
+
constant cvs_version = "$Id: configuration.pike,v 1.
359
2000/09/01
14
:
10
:
45
per Exp $";
constant is_configuration = 1; #include <module.h> #include <module_constants.h>
1949:
void start(int num) { // Note: This is run as root if roxen is started as root
-
foreach( registered_urls, string url )
+
foreach(
(
registered_urls
-query("URLs"))+failed_urls
, string url )
+
{
+
registered_urls -= ({ url });
roxen.unregister_url( url );
-
foreach( failed_urls, string url )
-
roxen.unregister_url( url );
+
}
-
registered_urls = ({ });
+
failed_urls = ({ });
-
foreach( query( "URLs" ), string url )
+
foreach(
(
query( "URLs" )
-registered_urls)
, string url )
if( roxen.register_url( url, this_object() ) ) registered_urls += ({ url }); else failed_urls += ({ url });
-
+
if( !datacache ) datacache = DataCache( ); else