From c4d67892751b17856b235182874c3304890dc2c3 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 29 Aug 2008 14:17:02 -0400 Subject: 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 --- scripts/xmppqueuehandler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/xmppqueuehandler.php') 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); -- cgit v1.2.3-54-g00ecf