Skip to content

fix(rumqttc): remove request_tx from EventLoop to allow gracefully exit #977

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bitcapybara
Copy link

@bitcapybara bitcapybara commented Jul 12, 2025

Closes #975

Breaking change

By removing the unused request_tx field from EventLoop, EventLoop can achieve graceful shutdown by triggering a RequestsDone error when all AsyncClient(Sender) instances have exited.

This code change alters the return value of the EventLoop::new method, breaking backward compatibility with the existing API.

@bitcapybara bitcapybara changed the title fix(rumqttc): remove request_tx from EventLoop to allow EventLoop to gracefully exit fix(rumqttc): remove request_tx from EventLoop to allow gracefully exit Jul 12, 2025
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.

EventLoop cannot gracefully exit because it holds a request_tx
1 participant