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

Python send stream can deadlock on shutdown #251

Open
bmerry opened this issue Aug 31, 2023 · 0 comments
Open

Python send stream can deadlock on shutdown #251

bmerry opened this issue Aug 31, 2023 · 0 comments
Labels

Comments

@bmerry
Copy link
Contributor

bmerry commented Aug 31, 2023

I'm unable to reproduce this now, but a one point running examples/test_send.py would hang rather than exiting. My theory is that it's because the stream destructor waits for the writer thread to make forward progress, but if the thread pool gets stopped first by the atexit handler, then it can't make progress.

The fix will probably be to give stream an exit_stopper that flushes and waits in the same way as stream::~stream.

@bmerry bmerry added the bug label Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant