]> git.ipfire.org Git - thirdparty/tornado.git/commit
Fix CurlAsyncHTTPClient cause memory leak with `force_instance=True` 2022/head
authorwanghui <wh_linux@126.com>
Fri, 21 Apr 2017 11:30:54 +0000 (19:30 +0800)
committerwanghui <wh_linux@126.com>
Fri, 21 Apr 2017 11:30:54 +0000 (19:30 +0800)
commit07983e3563a0dbc9bf81fafee77cfc40b15b2486
tree92aabd9f5a72aa2a1498a52ef4791ea132c942d1
parentc9d2a3fa573987629ad576e991c2f3b65f4daab4
Fix CurlAsyncHTTPClient cause memory leak with `force_instance=True`

The CurlAsyncHTTPClient will cause memory leak when set `force_instance=True`,
because the `self._multi` and `self._force_timeout_callback` hold some methods
that belong the instance of `CurlAsyncHTTPClient`, it will cause circular reference.
tornado/curl_httpclient.py