File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,8 @@ protected function addConnections(ArrayNodeDefinition $node)
54
54
->scalarNode ('password ' )->defaultValue ('guest ' )->end ()
55
55
->scalarNode ('vhost ' )->defaultValue ('/ ' )->end ()
56
56
->booleanNode ('lazy ' )->defaultFalse ()->end ()
57
+ ->booleanNode ('connection_timeout ' )->defaultValue (3 )->end ()
58
+ ->booleanNode ('read_write_timeout ' )->defaultValue (3 )->end ()
57
59
->booleanNode ('keepalive ' )->defaultFalse ()->info ('requires php-amqplib v2.4.1+ and PHP5.4+ ' )->end ()
58
60
->scalarNode ('heartbeat ' )->defaultValue (0 )->info ('requires php-amqplib v2.4.1+ ' )->end ()
59
61
->end ()
Original file line number Diff line number Diff line change @@ -84,8 +84,8 @@ protected function loadConnections()
84
84
'AMQPLAIN ' , // login_method
85
85
null , // login_response
86
86
'en_US ' , // locale
87
- 3 , // connection_timeout
88
- 3 , // read_write_timeout
87
+ $ connection [ ' connection_timeout ' ],
88
+ $ connection [ ' read_write_timeout ' ],
89
89
null , // context
90
90
$ connection ['keepalive ' ],
91
91
$ connection ['heartbeat ' ],
Original file line number Diff line number Diff line change @@ -121,6 +121,8 @@ old_sound_rabbit_mq:
121
121
password: 'guest'
122
122
vhost: '/'
123
123
lazy: false
124
+ connection_timeout: 3
125
+ read_write_timeout: 3
124
126
125
127
# requires php-amqplib v2.4.1+ and PHP5.4+
126
128
keepalive: false
You can’t perform that action at this time.
0 commit comments