MCPcopy
hub / github.com/tornadoweb/tornado / _on_connection_close

Method _on_connection_close

tornado/http1connection.py:338–348  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

336 self._close_callback = callback
337
338 def _on_connection_close(self) -> None:
339 # Note that this callback is only registered on the IOStream
340 # when we have finished reading the request and are waiting for
341 # the application to produce its response.
342 if self._close_callback is not None:
343 callback = self._close_callback
344 self._close_callback = None
345 callback()
346 if not self._finish_future.done():
347 future_set_result_unless_cancelled(self._finish_future, None)
348 self._clear_callbacks()
349
350 def close(self) -> None:
351 if self.stream is not None:

Callers

nothing calls this directly

Calls 4

_clear_callbacksMethod · 0.95
callbackFunction · 0.70
doneMethod · 0.45

Tested by

no test coverage detected