MCPcopy
hub / github.com/encode/uvicorn / timeout_keep_alive_handler

Method timeout_keep_alive_handler

uvicorn/protocols/http/h11_impl.py:363–371  ·  view source on GitHub ↗

Called on a keep-alive connection if no new data is received after a short delay.

(self)

Source from the content-addressed store, hash-verified

361 self.flow.resume_writing() # pragma: full coverage
362
363 def timeout_keep_alive_handler(self) -> None:
364 """
365 Called on a keep-alive connection if no new data is received after a short
366 delay.
367 """
368 if not self.transport.is_closing():
369 event = h11.ConnectionClosed()
370 self.conn.send(event)
371 self.transport.close()
372
373
374class RequestResponseCycle:

Callers

nothing calls this directly

Calls 3

is_closingMethod · 0.45
sendMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected