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)
5454 ->scalarNode ('password ' )->defaultValue ('guest ' )->end ()
5555 ->scalarNode ('vhost ' )->defaultValue ('/ ' )->end ()
5656 ->booleanNode ('lazy ' )->defaultFalse ()->end ()
57+ ->booleanNode ('connection_timeout ' )->defaultValue (3 )->end ()
58+ ->booleanNode ('read_write_timeout ' )->defaultValue (3 )->end ()
5759 ->booleanNode ('keepalive ' )->defaultFalse ()->info ('requires php-amqplib v2.4.1+ and PHP5.4+ ' )->end ()
5860 ->scalarNode ('heartbeat ' )->defaultValue (0 )->info ('requires php-amqplib v2.4.1+ ' )->end ()
5961 ->end ()
Original file line number Diff line number Diff line change @@ -84,8 +84,8 @@ protected function loadConnections()
8484 'AMQPLAIN ' , // login_method
8585 null , // login_response
8686 'en_US ' , // locale
87- 3 , // connection_timeout
88- 3 , // read_write_timeout
87+ $ connection [ ' connection_timeout ' ],
88+ $ connection [ ' read_write_timeout ' ],
8989 null , // context
9090 $ connection ['keepalive ' ],
9191 $ connection ['heartbeat ' ],
Original file line number Diff line number Diff line change @@ -121,6 +121,8 @@ old_sound_rabbit_mq:
121121 password: 'guest'
122122 vhost: '/'
123123 lazy: false
124+ connection_timeout: 3
125+ read_write_timeout: 3
124126
125127 # requires php-amqplib v2.4.1+ and PHP5.4+
126128 keepalive: false
You can’t perform that action at this time.
0 commit comments