pgjones / hypercorn

Hypercorn is an ASGI and WSGI Server based on Hyper libraries and inspired by Gunicorn.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

image

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.