@@ -47,6 +47,7 @@ public function __construct($config = 'amqp:')
47
47
->addDefaultOption ('login_response ' , null )
48
48
->addDefaultOption ('locale ' , 'en_US ' )
49
49
->addDefaultOption ('keepalive ' , false )
50
+ ->addDefaultOption ('channel_rpc_timeout ' , 0. )
50
51
->addDefaultOption ('heartbeat_on_tick ' , true )
51
52
->parse ()
52
53
;
@@ -120,7 +121,8 @@ private function establishConnection(): AbstractConnection
120
121
(int ) round (min ($ this ->config ->getReadTimeout (), $ this ->config ->getWriteTimeout ())),
121
122
null ,
122
123
$ this ->config ->getOption ('keepalive ' ),
123
- (int ) round ($ this ->config ->getHeartbeat ())
124
+ (int ) round ($ this ->config ->getHeartbeat ()),
125
+ $ this ->config ->getOption ('channel_rpc_timeout ' )
124
126
);
125
127
} else {
126
128
$ con = new AMQPStreamConnection (
@@ -137,7 +139,8 @@ private function establishConnection(): AbstractConnection
137
139
(int ) round (min ($ this ->config ->getReadTimeout (), $ this ->config ->getWriteTimeout ())),
138
140
null ,
139
141
$ this ->config ->getOption ('keepalive ' ),
140
- (int ) round ($ this ->config ->getHeartbeat ())
142
+ (int ) round ($ this ->config ->getHeartbeat ()),
143
+ $ this ->config ->getOption ('channel_rpc_timeout ' )
141
144
);
142
145
}
143
146
} else {
@@ -159,7 +162,8 @@ private function establishConnection(): AbstractConnection
159
162
(int ) round ($ this ->config ->getReadTimeout ()),
160
163
$ this ->config ->getOption ('keepalive ' ),
161
164
(int ) round ($ this ->config ->getWriteTimeout ()),
162
- (int ) round ($ this ->config ->getHeartbeat ())
165
+ (int ) round ($ this ->config ->getHeartbeat ()),
166
+ $ this ->config ->getOption ('channel_rpc_timeout ' )
163
167
);
164
168
} else {
165
169
$ con = new AMQPSocketConnection (
@@ -175,7 +179,8 @@ private function establishConnection(): AbstractConnection
175
179
(int ) round ($ this ->config ->getReadTimeout ()),
176
180
$ this ->config ->getOption ('keepalive ' ),
177
181
(int ) round ($ this ->config ->getWriteTimeout ()),
178
- (int ) round ($ this ->config ->getHeartbeat ())
182
+ (int ) round ($ this ->config ->getHeartbeat ()),
183
+ $ this ->config ->getOption ('channel_rpc_timeout ' )
179
184
);
180
185
}
181
186
}
0 commit comments