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

Method close

tornado/curl_httpclient.py:77–88  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

75 self._multi.remove_handle(dummy_curl_handle)
76
77 def close(self) -> None:
78 if self._timeout is not None:
79 self.io_loop.remove_timeout(self._timeout)
80 for curl in self._curls:
81 curl.close()
82 self._multi.close()
83 super().close()
84
85 # Set below properties to None to reduce the reference count of current
86 # instance, because those properties hold some methods of current
87 # instance that will case circular reference.
88 self._multi = None
89
90 def fetch_impl(
91 self, request: HTTPRequest, callback: Callable[[HTTPResponse], None]

Callers 1

_finishMethod · 0.45

Calls 1

remove_timeoutMethod · 0.45

Tested by

no test coverage detected