diff options
author | Brion Vibber <brion@pobox.com> | 2010-01-28 13:35:09 -0800 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-01-28 13:35:09 -0800 |
commit | d00ce3854932820cbdb906404d248800c400cbca (patch) | |
tree | 2dafb5ce3d749cebf286d614ad438c466b9252d1 /lib/stompqueuemanager.php | |
parent | d773ed8193ee63db360386507e0511d1742b2dd1 (diff) | |
parent | 513f8be07a22d722b86509e570bee46d028066f2 (diff) |
Merge commit 'origin/master' into testing
Diffstat (limited to 'lib/stompqueuemanager.php')
-rw-r--r-- | lib/stompqueuemanager.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/stompqueuemanager.php b/lib/stompqueuemanager.php index 19e8c49b5..4e2b58602 100644 --- a/lib/stompqueuemanager.php +++ b/lib/stompqueuemanager.php @@ -174,12 +174,13 @@ class StompQueueManager extends QueueManager $this->_connect(); - // XXX: serialize and send entire notice - + $props = array('created' => common_sql_now()); + if (common_config('queue', 'stomp_persistent')) { + $props['persistent'] = 'true'; + } $result = $this->con->send($this->queueName($queue), $msg, // BODY of the message - array ('created' => common_sql_now(), - 'persistent' => 'true')); + $props); if (!$result) { common_log(LOG_ERR, "Error sending $rep to $queue queue"); @@ -242,6 +243,7 @@ class StompQueueManager extends QueueManager parent::start($master); $this->_connect(); + common_log(LOG_INFO, "Subscribing to $this->control"); $this->con->subscribe($this->control); if ($this->sites) { foreach ($this->sites as $server) { |