Skip to content

Commit dd64888

Browse files
committed
add alive package
1 parent 249b4e7 commit dd64888

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

composer.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@
2323
"require-dev": {
2424
"yiisoft/yii2-redis": "*",
2525
"php-amqplib/php-amqplib": "*",
26-
"enqueue/amqp-lib": "^0.8",
26+
"enqueue/amqp-lib": "dev-master",
2727
"pda/pheanstalk": "*",
2828
"jeremeamia/superclosure": "*",
2929
"yiisoft/yii2-debug": "*",
3030
"yiisoft/yii2-gii": "*",
3131
"phpunit/phpunit": "~4.4",
3232
"aws/aws-sdk-php": ">=2.4",
33-
"enqueue/stomp": "^0.8.27"
33+
"enqueue/stomp": "dev-master"
3434
},
3535
"suggest": {
3636
"ext-pcntl": "Need for process signals.",
@@ -72,5 +72,7 @@
7272
"type": "composer",
7373
"url": "https://asset-packagist.org"
7474
}
75-
]
75+
],
76+
"minimum-stability": "dev",
77+
"prefer-stable": true
7678
}

src/drivers/stomp/Queue.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ public function run($repeat, $timeout = 0)
190190
break;
191191
} elseif ($timeout) {
192192
sleep($timeout);
193+
$this->context->getStomp()->getConnection()->sendAlive();
193194
}
194195
}
195196
});

0 commit comments

Comments
 (0)