Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix channel crash when draining AMQP 1.0 credits from classic queue #7141

Merged
merged 1 commit into from Feb 2, 2023

Conversation

kjnilsson
Copy link
Contributor

@kjnilsson kjnilsson commented Feb 1, 2023

Classic queues used a different format for the {send_drained, _} queue type action which was missed originally. This change handles both formats in the channel for backwards compatibility
as well as changes classic queues to conform to the same format when
sending the queue event.

Whilst adding tests for this in the amqp10 plugin another issue around the amqp10_client and filters was discovered and this commit also includes improvements in this area. Such as more lenient support for source filters.
Fixes #7119

Classic queues used a different format for the `{send_drained, _}`
queue type action which was missed originally. This change handles both
formats in the channel for backwards compatibility
 as well as changes classic queues to conform to the same format when
sending the queue event.

Whilst adding tests for this in the amqp10 plugin another issue around
the amqp10_client and filters was discovered and this commit also includes
improvements in this area. Such as more leninet support of source filters.
@michaelklishin michaelklishin merged commit 70094e6 into main Feb 2, 2023
@michaelklishin michaelklishin deleted the send-drained-bug-fix branch February 2, 2023 02:41
michaelklishin added a commit that referenced this pull request Feb 2, 2023
Fix channel crash when draining AMQP 1.0 credits from classic queue (backport #7141)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Channel can crash on send_drained
2 participants