MCPcopy Create free account
hub / github.com/EasyIME/PIME / _on_timeout

Method _on_timeout

python/python3/tornado/simple_httpclient.py:482–494  ·  view source on GitHub ↗

Timeout callback of _HTTPConnection instance. Raise a `HTTPTimeoutError` when a timeout occurs. :info string key: More detailed timeout information.

(self, info: Optional[str] = None)

Source from the content-addressed store, hash-verified

480 return None
481
482 def _on_timeout(self, info: Optional[str] = None) -> None:
483 """Timeout callback of _HTTPConnection instance.
484
485 Raise a `HTTPTimeoutError` when a timeout occurs.
486
487 :info string key: More detailed timeout information.
488 """
489 self._timeout = None
490 error_message = "Timeout {0}".format(info) if info else "Timeout"
491 if self.final_callback is not None:
492 self._handle_exception(
493 HTTPTimeoutError, HTTPTimeoutError(error_message), None
494 )
495
496 def _remove_timeout(self) -> None:
497 if self._timeout is not None:

Callers

nothing calls this directly

Calls 3

_handle_exceptionMethod · 0.95
HTTPTimeoutErrorClass · 0.85
formatMethod · 0.45

Tested by

no test coverage detected