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
Use asyncio.wait with timeout rather than sleep #576
Conversation
The latter approach seems to hang with Python 3.6. Signed-off-by: Scott K Logan <logans@cottsay.net>
42c5903
to
2ff6f3c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand how this would avoid a hang why the original code would hang, but the change LGTM
Unfortunately, I think this is going to bring the warning back on Jammy (Python 3.9). As far as I can tell, you can no longer pass a future directly to Why that causes a hang in RHEL, I'm not sure. I guess we could do conditional code based on the version of Python that is in use? |
I don't see how. #571 wrapped the
I really don't know either, but I didn't do very much investigation. Once I realized that the code could be simplified and found that it solved the hang, I moved on. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, though I don't understand why the hang in RHEL either.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never mind, on Jammy this seems to work fine. So 👍 from me.
Resolves a RHEL regression caused by #571
Blocked by #575