forked from GNUsocial/gnu-social
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into nightly
This commit is contained in:
commit
ec504ec4df
@ -324,6 +324,8 @@ class Stomp
|
||||
{
|
||||
$headers = array('ack' => 'client');
|
||||
$headers['activemq.prefetchSize'] = $this->prefetchSize;
|
||||
$headers['prefetch-count'] = '1';
|
||||
|
||||
if ($this->clientId != null) {
|
||||
$headers["activemq.subcriptionName"] = $this->clientId;
|
||||
}
|
||||
|
@ -151,7 +151,7 @@ class StompQueueManager extends QueueManager
|
||||
$envelope = array('site' => $siteNickname ? $siteNickname : common_config('site', 'nickname'),
|
||||
'handler' => $queue,
|
||||
'payload' => $this->encode($object));
|
||||
$msg = serialize($envelope);
|
||||
$msg = base64_encode(serialize($envelope));
|
||||
|
||||
$props = array('created' => common_sql_now());
|
||||
if ($this->isPersistent($queue)) {
|
||||
@ -479,7 +479,7 @@ class StompQueueManager extends QueueManager
|
||||
protected function handleItem($frame)
|
||||
{
|
||||
$host = $this->cons[$this->defaultIdx]->getServer();
|
||||
$message = unserialize($frame->body);
|
||||
$message = unserialize(base64_decode($frame->body));
|
||||
|
||||
if ($message === false) {
|
||||
$this->_log(LOG_ERR, "Can't unserialize frame: {$frame->body}");
|
||||
@ -490,7 +490,7 @@ class StompQueueManager extends QueueManager
|
||||
$site = $message['site'];
|
||||
$queue = $message['handler'];
|
||||
|
||||
if ($this->isDeadletter($frame, $message)) {
|
||||
if ($this->isDeadLetter($frame, $message)) {
|
||||
$this->stats('deadletter', $queue);
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user