diff options
author | Oleg Pudeyev <oleg@bsdpower.com> | 2018-05-21 22:09:29 -0400 |
---|---|---|
committer | Oleg Pudeyev <oleg@bsdpower.com> | 2018-05-21 22:25:06 -0400 |
commit | b74d8c2d3192381945b5467292c8c3a2366ebeff (patch) | |
tree | e5a344479a71596b16eb827cb828374ea36b9e09 /doc | |
parent | 905bf4b0d9a6a71710ce130c2454ecad10d975f0 (diff) | |
download | pycurl-b74d8c2d3192381945b5467292c8c3a2366ebeff.tar.gz |
Keep Curl objects alive when they are being used by CurlMulti objects
Fixes #171
Diffstat (limited to 'doc')
-rw-r--r-- | doc/docstrings/multi_add_handle.rst | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/docstrings/multi_add_handle.rst b/doc/docstrings/multi_add_handle.rst index 9de72ce..64ed7c7 100644 --- a/doc/docstrings/multi_add_handle.rst +++ b/doc/docstrings/multi_add_handle.rst @@ -3,9 +3,10 @@ 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. -IMPORTANT NOTE: add_handle does not implicitly add a Python reference to the -Curl object (and thus does not increase the reference count on the Curl -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 |