10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5cb829 commit 7406632Copy full SHA for 7406632
src/com/rabbitmq/client/impl/ChannelN.java
@@ -571,7 +571,9 @@ public AMQCommand transformReply(AMQCommand command) {
571
// we wait for the reply. We ignore the result.
572
// (It's NOT always close-ok.)
573
notify = true;
574
- k.getReply(-1);
+ // Should not wait indefinately, since if the server is congested
575
+ // the call will lock and never return. This stalls and kills the current thread.
576
+ k.getReply(10000);
577
} catch (TimeoutException ise) {
578
// Will never happen since we wait infinitely
579
} catch (ShutdownSignalException sse) {
0 commit comments