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

Prevent deadlock in RobustChannel.reopen() #622

Merged

Conversation

Darsstar
Copy link
Contributor

@Darsstar Darsstar commented Mar 16, 2024

I felt this deserves it's own PR instead of including it in #615.

It is late, so here is the best, but consice, description I can currently manage:
Connection.ready() is how users should check if the connection is ready, internally Connection.transport.ready() should be used if RobustConnection.__reconnect_task() might cause it to be executed.

@coveralls
Copy link

coveralls commented Mar 16, 2024

Coverage Status

coverage: 88.125%. first build
when pulling 5b2f6c8 on Darsstar:prevent-deadlock-in-channel-reopen
into a3ef44b on mosquito:master.

@Darsstar Darsstar changed the title Prevent deadlock in Channel.reopen() Prevent deadlock in RobustChannel.reopen() Mar 16, 2024
@Darsstar Darsstar force-pushed the prevent-deadlock-in-channel-reopen branch 2 times, most recently from 20071c2 to 5b04c04 Compare March 16, 2024 11:30
@Darsstar Darsstar force-pushed the prevent-deadlock-in-channel-reopen branch from 5b04c04 to 5b2f6c8 Compare March 16, 2024 11:36
@mosquito mosquito requested review from decaz, mosquito and Alviner March 19, 2024 11:39
@mosquito mosquito merged commit a862a78 into mosquito:master Mar 19, 2024
9 checks passed
@Darsstar Darsstar deleted the prevent-deadlock-in-channel-reopen branch March 19, 2024 11:48
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.

4 participants