Error : unable to perform operation on <TCPTransport>; the handler is closed mechanism asgi handled
jidey43 opened this issue · comments
Python 3.11.1
Quart 0.16.3
I have encountered this issue in my backend Sentry backlog, but I do not quite understand what to do with it. I think it has to do with Hypercorn.
This exception is raised in the context of an endpoint that streams PDF bytes to a client webapp. I believe it occurs when the connection is unstable, and the TCP socket is closed.
Please note that uviloop appears to have had a similar issue here.
Is it a known issue? How did the issue bubble up to the interpreter?
Perhaps I just need to catch and silence it in the app.
Thxs
I'm not sure if I can track this down from the stack trace information given. If you can provide an example that reproduces it that would help a lot.