curl-and-python

long to int conversion bug

From: Yuri Ushakov <yuri.ushakov_at_gmail.com>
Date: Thu, 4 Apr 2013 15:40:24 +0400

http://dl.dropbox.com/u/8792466/pycurl.c.patch

When really big timeouts were specified, do_multi_timeout() would return
negative values to Python code. Libcurl takes long and handles it well,
whereas pycurl corrupted the value.

That made tornado (http://www.tornadoweb.org) go into an essentially
infinite loop and stop serving incoming http requests, eating up all CPU
time.

Tested on Python 2.6.5 and Tornado 2.0.0.

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-python
Received on 2013-04-04