Skip to content

Commit 3958bb0

Browse files
committed
Use _rpcTimeout in ChannelN#close
Instead of fixed 10-second timeout. Fixes #1907 (cherry picked from commit 59eab30)
1 parent f599f8f commit 3958bb0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/com/rabbitmq/client/impl/ChannelN.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -635,8 +635,8 @@ public AMQCommand transformReply(AMQCommand command) {
635635
// we wait for the reply. We ignore the result.
636636
// (It's NOT always close-ok.)
637637
notify = true;
638-
// do not wait indefinitely
639-
k.getReply(10000);
638+
int closeTimeout = _rpcTimeout == NO_RPC_TIMEOUT ? 10000 : _rpcTimeout;
639+
k.getReply(closeTimeout);
640640
} catch (TimeoutException ise) {
641641
if (!abort)
642642
throw ise;

0 commit comments

Comments
 (0)