curl_httpclient: Reset the curl object before putting it on the freelist · tornadoweb/tornado@3154caa · GitHub
Skip to content

Commit 3154caa

Browse files
committed
curl_httpclient: Reset the curl object before putting it on the freelist
We previously did a piecemeal reset of the curl object, but missed some options (and in fact many of these options cannot be unset without fully resetting the object). This allowed some options to leak between requests. Now we use the curl reset method to ensure we catch everything.
1 parent 7d869c0 commit 3154caa

2 files changed

Lines changed: 111 additions & 12 deletions

File tree

tornado/curl_httpclient.py

Lines changed: 12 additions & 10 deletions

tornado/test/curl_httpclient_test.py

Lines changed: 99 additions & 2 deletions

0 commit comments

Comments
 (0)