You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The wait() method of the IAsyncResult has a race. If it is called after the asynchronous operation has completed, the Condition wait() will be stuck forever.
The attached bug.py.txt file demonstrates the problem. The key to triggering it is to call time.sleep(1) before calling wait(). bug.py.txt
Basically, the handlers.utils.AsyncResults.wait() method needs to only call the condition.wait() if the result is not ready(). I've attached a git diff output to illustrate the fix.
The wait() method of the IAsyncResult has a race. If it is called after the asynchronous operation has completed, the Condition wait() will be stuck forever.
The attached bug.py.txt file demonstrates the problem. The key to triggering it is to call time.sleep(1) before calling wait().
bug.py.txt
Basically, the handlers.utils.AsyncResults.wait() method needs to only call the condition.wait() if the result is not ready(). I've attached a git diff output to illustrate the fix.
diff.txt
Thanks,
Jim Hanko
The text was updated successfully, but these errors were encountered: