add some sanity-check stuff for long-running daemons

darcs-hash:20080831023844-84dde-b8c9ce5f38d33c7fd8a42dc0d3640d500e653011.gz
This commit is contained in:
Evan Prodromou 2008-08-30 22:38:44 -04:00
parent ed2aeecfdd
commit 902ba87a8b
6 changed files with 18 additions and 0 deletions

View File

@ -62,6 +62,9 @@ class OmbQueueHandler extends QueueHandler {
} }
} }
ini_set("max_execution_time", "0");
ini_set("max_input_time", "0");
set_time_limit(0);
mb_internal_encoding('UTF-8'); mb_internal_encoding('UTF-8');
$id = ($argc > 1) ? $argv[1] : NULL; $id = ($argc > 1) ? $argv[1] : NULL;

View File

@ -93,6 +93,9 @@ class PublicQueueHandler extends QueueHandler {
} }
} }
ini_set("max_execution_time", "0");
ini_set("max_input_time", "0");
set_time_limit(0);
mb_internal_encoding('UTF-8'); mb_internal_encoding('UTF-8');
$resource = ($argc > 1) ? $argv[1] : (common_config('xmpp','resource') . '-public'); $resource = ($argc > 1) ? $argv[1] : (common_config('xmpp','resource') . '-public');

View File

@ -52,6 +52,9 @@ class SmsQueueHandler extends QueueHandler {
} }
} }
ini_set("max_execution_time", "0");
ini_set("max_input_time", "0");
set_time_limit(0);
mb_internal_encoding('UTF-8'); mb_internal_encoding('UTF-8');
$id = ($argc > 1) ? $argv[1] : NULL; $id = ($argc > 1) ? $argv[1] : NULL;

View File

@ -176,6 +176,9 @@ class XmppConfirmHandler {
} }
} }
ini_set("max_execution_time", "0");
ini_set("max_input_time", "0");
set_time_limit(0);
mb_internal_encoding('UTF-8'); mb_internal_encoding('UTF-8');
$resource = ($argc > 1) ? $argv[1] : (common_config('xmpp', 'resource').'-confirm'); $resource = ($argc > 1) ? $argv[1] : (common_config('xmpp', 'resource').'-confirm');

View File

@ -306,6 +306,9 @@ class XMPPDaemon {
} }
} }
ini_set("max_execution_time", "0");
ini_set("max_input_time", "0");
set_time_limit(0);
mb_internal_encoding('UTF-8'); mb_internal_encoding('UTF-8');
$resource = ($argc > 1) ? $argv[1] : (common_config('xmpp','resource') . '-listen'); $resource = ($argc > 1) ? $argv[1] : (common_config('xmpp','resource') . '-listen');

View File

@ -98,6 +98,9 @@ class XmppQueueHandler extends QueueHandler {
} }
} }
ini_set("max_execution_time", "0");
ini_set("max_input_time", "0");
set_time_limit(0);
mb_internal_encoding('UTF-8'); mb_internal_encoding('UTF-8');
$resource = ($argc > 1) ? $argv[1] : (common_config('xmpp','resource') . '-queuehandler'); $resource = ($argc > 1) ? $argv[1] : (common_config('xmpp','resource') . '-queuehandler');