Skip to content

Commit 6d1b455

Browse files
author
Tim Watson
committed
explain that ShutdownListeners run in the connection's thread
1 parent c9819ef commit 6d1b455

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/com/rabbitmq/client/ShutdownListener.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
* A ShutdownListener receives information about the shutdown of connections and
2424
* channels. Note that when a connection is shut down, its associated channels are also
2525
* considered shut down and their ShutdownListeners will be notified (with the same cause).
26+
* Because of this, and the fact that channel ShutdownListeners execute in the connection's
27+
* thread, attempting to make blocking calls on a connection inside the listener will
28+
* lead to deadlock.
2629
*
2730
* @see ShutdownNotifier
2831
* @see ShutdownSignalException

0 commit comments

Comments
 (0)