diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-08-29 14:17:02 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-08-29 14:17:02 -0400 |
commit | c4d67892751b17856b235182874c3304890dc2c3 (patch) | |
tree | b31fa8766cfaa2e906cf19862af5bfa50390e6cd /scripts/xmppqueuehandler.php | |
parent | f652418863182182bb17e0f378194a8648392410 (diff) |
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
Diffstat (limited to 'scripts/xmppqueuehandler.php')
-rwxr-xr-x | scripts/xmppqueuehandler.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/xmppqueuehandler.php b/scripts/xmppqueuehandler.php index 8fe8b1360..3f632d5a8 100755 --- a/scripts/xmppqueuehandler.php +++ b/scripts/xmppqueuehandler.php @@ -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); |