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.