Commit 902ba87a authored by Evan Prodromou's avatar Evan Prodromou

add some sanity-check stuff for long-running daemons

darcs-hash:20080831023844-84dde-b8c9ce5f38d33c7fd8a42dc0d3640d500e653011.gz
parent ed2aeecf
......@@ -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');
$id = ($argc > 1) ? $argv[1] : NULL;
......
......@@ -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');
$resource = ($argc > 1) ? $argv[1] : (common_config('xmpp','resource') . '-public');
......
......@@ -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');
$id = ($argc > 1) ? $argv[1] : NULL;
......
......@@ -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');
$resource = ($argc > 1) ? $argv[1] : (common_config('xmpp', 'resource').'-confirm');
......
......@@ -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');
$resource = ($argc > 1) ? $argv[1] : (common_config('xmpp','resource') . '-listen');
......
......@@ -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');
$resource = ($argc > 1) ? $argv[1] : (common_config('xmpp','resource') . '-queuehandler');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment