Repository navigation
Close channel on RPC timeout - #2128
Merged
Merged
Conversation
AMQP 0-9-1 replies cannot be correlated with their requests. When a channel RPC timed out, the channel stayed open and the late reply of the timed out request could be handed to a subsequent RPC on the same channel (e.g. a basic.get-ok for a queue returned to a basic.get on another queue). The channel is now closed when one of its RPC calls times out. The channel.close is sent without waiting for the close-ok: inbound commands, including the late reply, are discarded until the close-ok arrives, then the channel number is released and shutdown listeners are notified. The close reason has the TimeoutException as its cause. Applications must create a new channel after a ChannelContinuationTimeoutException.
acogoluegnes
marked this pull request as ready for review
October 15, 2026 16:35
michaelklishin
approved these changes
Oct 15, 2026
Contributor
Author
|
@Mergifyio backport v5.x |
✅ Backports have been createdDetails
Cherry-pick of 6af538a has failed: To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
michaelklishin
added a commit
that referenced
this pull request
Oct 16, 2026
Close channel on RPC timeout (backport #2128)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AMQP 0-9-1 replies cannot be correlated with their requests. When a
channel RPC timed out, the channel stayed open and the late reply of
the timed out request could be handed to a subsequent RPC on the same
channel (e.g. a basic.get-ok for a queue returned to a basic.get on
another queue).
The channel is now closed when one of its RPC calls times out. The
channel.close is sent without waiting for the close-ok: inbound
commands, including the late reply, are discarded until the close-ok
arrives, then the channel number is released and shutdown listeners
are notified. The close reason has the TimeoutException as its cause.
Applications must create a new channel after a
ChannelContinuationTimeoutException.