split public stream to its own queue handler
Add another queue handler for the public stream. Should further parallelize the work of sending out messages. darcs-hash:20080829181702-84dde-594505aa73d2380b13bd98917b70b02bac597d12.gz
This commit is contained in:
@@ -41,7 +41,7 @@ class XmppQueueHandler extends QueueHandler {
|
||||
|
||||
function start() {
|
||||
# Low priority; we don't want to receive messages
|
||||
$this->conn = jabber_connect($this->resource, NULL, -100);
|
||||
$this->conn = jabber_connect($this->_id, NULL, -1);
|
||||
return !is_null($this->conn);
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ class XmppQueueHandler extends QueueHandler {
|
||||
|
||||
mb_internal_encoding('UTF-8');
|
||||
|
||||
$resource = ($argc > 1) ? $argv[1] : NULL;
|
||||
$resource = ($argc > 1) ? $argv[1] : (common_config('xmpp','resource') . '-queuehandler');
|
||||
|
||||
$handler = new XmppQueueHandler($resource);
|
||||
|
||||
|
Reference in New Issue
Block a user