Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

curl_httpclient going into an infinite loop #712

Closed
wilem82 opened this Issue · 0 comments

1 participant

@wilem82

https://github.com/facebook/tornado/blob/v3.0.0/tornado/curl_httpclient.py#L175

pycurl has a bug that causes integer overflow and

self._multi.timeout()

to return large negative values, which starts a really, really long chain of _handle_timeout() calls and tornado to stop responding.

See also http://curl.haxx.se/mail/curlpython-2013-04/0000.html .

Until pycurl is fixed, it would be a good idea to do:

if new_timeout >= 0:
@bdarnell bdarnell closed this issue from a commit
@bdarnell bdarnell Ignore negative return values from CurlMulti.timeout.
pycurl has a wraparound bug that can turn very large timeouts into
negative numbers.

Closes #712.
4059df2
@bdarnell bdarnell closed this in 4059df2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.