When subscribed to the event stream api, we’re seeing periodic issues where the connection is still open, however it’s no longer receiving events. We use this endpoint at Losant to power the Particle integration.
By all indications, the underlying connection is still established, however a few customers have reported events have stopped being received. Our metrics indicate that events from other integrations are still flowing, so it appears to only affect that single connection.
Re-establishing the connection has so far caused events to start streaming again in all cases. We’ve put a fix in place to watch the stream and if no event has been received for 5 minutes, we automatically re-establish it. This isn’t the ideal fix since messages could still be lost.
Let me know if there’s any other information I can provide to help track this down.
I’ve been experiencing this for a couple of months with the C# wrapper to the event stream. I built in code to reestablish the stream when I don’t see any events for 60 seconds. That has been rock solid. I haven’t seen any particular pattern to these restarts, but it seems to happen once every couple of days. – Doug