You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PostgresJsonResponse: disconnect watcher can call reschedule() on a finished asyncio.Timeout #59
Seen once under Granian when the query failed before the first byte: Task exception was never retrieved: RuntimeError('Cannot change state of finished Timeout') from cancel_scope.reschedule(loop.time()) in watch_for_disconnect (pgdevkit/fastapi/json_response.py). The watcher is cancelled in the finally, so this needs a window I could not reproduce deterministically; a guard (if not cancel_scope.expired() / suppress RuntimeError around reschedule) would make it harmless. Found in the review of #58. (The related 'No response returned.' with BaseHTTPMiddleware is fixed in #58.)
Activity