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

Method _set_timeout

tornado/curl_httpclient.py:126–132  ·  view source on GitHub ↗

Called by libcurl to schedule a timeout.

(self, msecs: int)

Source from the content-addressed store, hash-verified

124 self._fds[fd] = ioloop_event
125
126 def _set_timeout(self, msecs: int) -> None:
127 """Called by libcurl to schedule a timeout."""
128 if self._timeout is not None:
129 self.io_loop.remove_timeout(self._timeout)
130 self._timeout = self.io_loop.add_timeout(
131 self.io_loop.time() + msecs / 1000.0, self._handle_timeout
132 )
133
134 def _handle_events(self, fd: int, events: int) -> None:
135 """Called by IOLoop when there is activity on one of our

Callers 2

fetch_implMethod · 0.95
_handle_timeoutMethod · 0.95

Calls 3

add_timeoutMethod · 0.80
timeMethod · 0.80
remove_timeoutMethod · 0.45

Tested by

no test coverage detected