Debian Codegraph @

doc/docstrings/multi_close.rst

raw
1 close() -> None
2
3 Corresponds to `curl_multi_cleanup`_ in libcurl. This method is
4 automatically called by pycurl when a ``CurlMulti`` object no longer has
5 any references to it, but can also be called explicitly.
6
7 It removes all easy handles from the multi handle before closing the
8 multi handle.
9
10 If the ``CurlMulti`` was constructed with ``close_handles=True``, the
11 removed easy handles are also closed after removal. Otherwise, they
12 remain open.
13
14 ``close()`` may not be called while ``perform()`` or ``socket_action()``
15 is on the stack (for example, from inside ``M_SOCKETFUNCTION`` or
16 ``M_TIMERFUNCTION``); doing so raises ``pycurl.error``.
17
18 .. _curl_multi_cleanup:
19 https://curl.haxx.se/libcurl/c/curl_multi_cleanup.html