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: consume and publish blocked after rabbitmq reconnecting #2492

Merged
merged 10 commits into from
Apr 28, 2022

Conversation

bosima
Copy link
Contributor

@bosima bosima commented Apr 27, 2022

As the title says, now consume and publish blocked after reconnecting. This can be replicated by restart rabbitmq.

For publish and consume , one go Channel may be blocked after the connection is disconnected.
For consume only, 'waitConnection' maybe the old value, and will blocked forever.

reference issue:
#rabbitmq/amqp091-go#18


In addition 'amqp.Channel.NotifyReturn' is not a connection or channel failed, so i removed the 'channelNotifyReturn'.

amqp-0-9-1-quickref
This method returns an undeliverable message that was published with the "immediate" flag set, or an unroutable message published with the "mandatory" flag set.

@xpunch
Copy link
Contributor

xpunch commented Apr 27, 2022

Could you also update to github.com/go-micro/plugins/v4/broker/rabbitmq?

@bosima
Copy link
Contributor Author

bosima commented Apr 27, 2022

Could you also update to github.com/go-micro/plugins/v4/broker/rabbitmq?

ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants