mirror of
https://github.com/xcat2/confluent.git
synced 2026-09-21 16:39:32 +00:00
9e41fdc598
run_handler scheduled the coroutine that serves an async HTTP request and dropped the returned task. The event loop only keeps a weak reference, so the task could be collected while still pending, leaving the request unanswered and "Task was destroyed but it is pending!" in the log. The session already outlives the request in _asyncsessions, so it holds the task in a set and discards it from a done callback.