Exception while interrupting (ctrl+c) asyncio client example #1057
-
I'm a non regular user of python, and use Python 3.8 on Windows 10 in Visual studio code terminal (powershell). I use the asyncio client example to connect to a (NodeJS) socket.io WSS server using a self-signed certificate (e.g
The However the following
3 questions:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
The
KeyboardInterrupt
exception is standard for Python programs when they are interrupted. You can catch it in your application if you want to silence it. The "Unclosed" errors come from aiohttp, which is a dependency of this package. Make sure you are using the latest versions of python-engineio and python-socketio and let me know if these errors persist.I have very little knowledge of Windows related issues with asyncio. Changing the policy just configures the method that asyncio uses to achieve concurrency. My personal opinion is that changing the policy just to avoid some error on exit is probably not the correct way to think about the problem, but once again, I'm not familiar wi…