Twitter stream disconnects with no error message


I can get data for about 5 minutes, and then the feed cuts out.

I don’t see stall warnings or any error messages. The connection just stops.

Anything else I could check?


I regularly find that streams get stopped without warning.

Streams should send a newline character as a keepalive every 30s, so if you don’t receive anything after 90s (documentation specifies waiting for at least 3x the keepalive interval) then you can stop the stream and start a new one.


Yeah looks like it’s still ongoing. I used to have a constant stream before… it cuts out almost every 60 seconds before I have to reconnect.