File: multi_add_handle.rst

package info (click to toggle)
pycurl 7.45.7-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,780 kB
  • sloc: python: 8,663; ansic: 6,891; makefile: 202; sh: 183
file content (12 lines) | stat: -rw-r--r-- 522 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
add_handle(Curl object) -> None

Corresponds to `curl_multi_add_handle`_ in libcurl. This method adds an
existing and valid Curl object to the CurlMulti object.

*Changed in version 7.43.0.2:* add_handle now ensures that the Curl object
is not garbage collected while it is being used by a CurlMulti object.
Previously application had to maintain an outstanding reference to the Curl
object to keep it from being garbage collected.

.. _curl_multi_add_handle:
    https://curl.haxx.se/libcurl/c/curl_multi_add_handle.html