Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upset_exception_handler is not handling exception as expected. #360
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
PYTHONASYNCIODEBUGin env?: yesYes asyncio default loop catches
TimeoutError: [Errno 110] Connection timed outwhereas uvloop closes the loop and throwsRuntimeError: Event loop stopped before Future completed.I ran across this bug when dealing with websockets (you could see the issue - aaugustin/websockets#823)
To log this error :
Python websockets throw a
TimeoutErrorwhen a client is not found in a certain time limit (for ping/ pongs). In asyncio, the error is bubbled toset_exception_handler, and I could log it there as expected. However in uvloop, instead of having the exception being bubbled to exception_handler, it shuts down the loop. I get the following error:Thanks for your time! Appreciate such a neat package to make asyncio faster in python.