I just tested this with pycurl 7.19.5 (hopefully soon uploaded to
Utopic). It seems to work for me. For example, if I bump the timeout
down to 100ms (since baidu comes back quicker than 999ms for me), I see
the timeout regardless of whether NOSIGNAL is set or not. So I guess
this is fixed in newer versions of pycurl.
** Changed in: pycurl (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to pycurl in Ubuntu.
https://bugs.launchpad.net/bugs/1176944
Title:
pycurl.TIMEOUT_MS not work when the value <= 999
Status in “pycurl” package in Ubuntu:
Incomplete
Bug description:
At first, I'm sorry if this is not a bug or here is not the right
place to report...
===Code Sample=
import time
import pycurl
c = pycurl.Curl()
c.setopt(pycurl.URL, 'http://baidu.com/')
start = time.time()
c.setopt(pycurl.TIMEOUT_MS, 999)
try:
c.perform()
except:
print "Timeout"
finally:
print time.time() - start
c = pycurl.Curl()
c.setopt(pycurl.URL, 'http://baidu.com/')
c.setopt(pycurl.TIMEOUT_MS, 999)
c.setopt(pycurl.NOSIGNAL, 1)
c.perform()
print "set NOSIGNAL makes it work"
OutPut==
Timeout
0.0002281665802
http://www.baidu.com/";>
set NOSIGNAL makes it work
=
system: quantal
python-pycurl version: 7.19.0-5ubuntu1
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pycurl/+bug/1176944/+subscriptions
--
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help : https://help.launchpad.net/ListHelp