I'm using pycurl to crawl data from the Twitter Streaming API. However, after several hours, the connection just hangs there.
Is there anyway to detect this and exit the program? I know pycurl has TIMEOUT and CONNECTTIMEOUT, but these two params do not apply.
Do you get an exception or something and could you please add some code? :)
Maybe you should think about using another module like httplib (if you want to
use SSL/TLS you could create a new socket and overwrite the connect function of httplib with
your secure wrapped socket :) )
Python pycurl with Twitter Streaming API