When the proxy is shut down (i.e. via Ctrl+C/SIGHUP), asyncio server closes streams to the clients, but the proxy might still try writing to them, resulting in long stack traces.
A more accurate solution would be to make the server state visible to the application logic so it can take more accurate decisions.
When the proxy is shut down (i.e. via
Ctrl+C/SIGHUP), asyncio server closes streams to the clients, but the proxy might still try writing to them, resulting in long stack traces.A more accurate solution would be to make the server state visible to the application logic so it can take more accurate decisions.