Skip to content

Commit 2cd4bea

Browse files
Merge pull request #44 from designtesbrot/master
Upgrade php-amqplib to ^2.9 / add channel_rpc_timeout option
2 parents 25258df + dd40257 commit 2cd4bea

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

Configuration.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ class Configuration extends Component
4242
'ssl_context' => null,
4343
'keepalive' => false,
4444
'heartbeat' => 0,
45+
'channel_rpc_timeout' => 0.0
4546
],
4647
],
4748
'exchanges' => [

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ php composer.phar require mikemadisonweb/yii2-rabbitmq
2020
```
2121
or add
2222
```json
23-
"mikemadisonweb/yii2-rabbitmq": "^2.0.0"
23+
"mikemadisonweb/yii2-rabbitmq": "^2.1.1"
2424
```
2525
to the require section of your `composer.json` file.
2626

@@ -258,6 +258,7 @@ $rabbitmq_defaults = [
258258
'ssl_context' => null,
259259
'keepalive' => false,
260260
'heartbeat' => 0,
261+
'channel_rpc_timeout' => 0.0
261262
],
262263
],
263264
'exchanges' => [

components/AbstractConnectionFactory.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ public function createConnection() : AbstractConnection
4343
$this->_parameters['read_write_timeout'],
4444
$this->_parameters['ssl_context'],
4545
$this->_parameters['keepalive'],
46-
$this->_parameters['heartbeat']
46+
$this->_parameters['heartbeat'],
47+
$this->_parameters['channel_rpc_timeout']
4748
);
4849
}
4950

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"require": {
1414
"php": "^7.0",
1515
"yiisoft/yii2": "^2.0",
16-
"php-amqplib/php-amqplib": "^2.7"
16+
"php-amqplib/php-amqplib": "^2.9"
1717
},
1818
"require-dev": {
1919
"phpunit/phpunit": "^6.4",

0 commit comments

Comments
 (0)