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

Method shutdown

uvicorn/protocols/http/h11_impl.py:340–349  ·  uvicorn/protocols/http/h11_impl.py::H11Protocol.shutdown

Called by the server to commence a graceful shutdown.

(self)

Source from the content-addressed store, hash-verified

338 self.handle_events()
339
340 def shutdown(self) -> None:
341 class="st">"""
342 Called by the server to commence a graceful shutdown.
343 class="st">"""
344 if self.cycle is None or self.cycle.response_complete:
345 event = h11.ConnectionClosed()
346 self.conn.send(event)
347 self.transport.close()
348 else:
349 self.cycle.keep_alive = False
350
351 def pause_writing(self) -> None:
352 class="st">"""

Callers

nothing calls this directly

Calls 2

sendMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected