X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FDaemon%2FPreforking.pm;h=4f3f2be8536867d7664f5c31afdd715cadf285b4;hb=HEAD;hp=98b4fa68c9ae958caf854bf1f8c50bbcfec3d4b9;hpb=e9e0cf0989259b94d9758eceff448666a2e5a5cc;p=freeside.git diff --git a/FS/FS/Daemon/Preforking.pm b/FS/FS/Daemon/Preforking.pm index 98b4fa68c..4f3f2be85 100644 --- a/FS/FS/Daemon/Preforking.pm +++ b/FS/FS/Daemon/Preforking.pm @@ -46,7 +46,7 @@ use warnings; use strict; use constant DEBUG => 0; # Enable much runtime information. -use constant MAX_PROCESSES => 10; # Total server process count. +use constant MAX_PROCESSES => 10; # Total server process count. XXX conf to increase per-different daemon for busy sites using this (currently the only things using this are freeside-xmlrpcd and freeside-selfservice-xmlrpcd) #use constant TESTING_CHURN => 0; # Randomly test process respawning. use vars qw( @EXPORT_OK $FREESIDE_LOG $SERVER_PORT $user $handle_request ); @@ -96,6 +96,7 @@ sub daemon_run { #parent doesn't need to hold a DB connection open dbh->disconnect; undef $FS::UID::dbh; + undef $RT::Handle; server_spawn(MAX_PROCESSES); POE::Kernel->run();