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:
Evan Prodromou
2008-08-29 14:17:02 -04:00
parent f652418863
commit c4d6789275
7 changed files with 101 additions and 20 deletions

View File

@@ -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);