You can use the timeout settings: conn. Setopt(pycurl. CONNECTTIMEOUT, 15) conn.
Setopt(pycurl. TIMEOUT, 25) You'll get a pycurl. Error exception if curl times out.
I'm afraid you don't understand the Twitter streaming API. The request is being made and stays open for hours. – gnur Feb 11 at 15:22.
I have a premonition that this could be related to "tcp broken pipe" scenario. I.e. The other peer at some moment closes the connection, but our peer somehow ignores the event.
You will need to use some kind of keep-alives to deel with this. The "right", elegant solution of the problem may require some actions from twitter itself. This is rather common issue; my friend have used the streaming api and encountered the same problem.
Twitter is supposed to send blank lines as a keep-alive. So maybe you need to have another thread that keeps a countdown since you last got a packet from twitter and interrupts the main thread if nothing has been received in X amount of time – ʞɔıu Feb 11 at 16:35 @ʞɔıu, something like that. But please don't abuse threads: look for timeout options in the curl api.
There has to be something. – ulidtko Feb 11 at 16:38.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.