No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
Newer Version Available
Clients and Timeouts
Streaming API imposes two timeouts, as supported in the Bayeux protocol.
- Socket timeout: 110 seconds
- A client receives events (JSON-formatted HTTP responses) while it waits on a connection. If no events are generated and the client is still waiting, the connection times out after 110 seconds and the server closes the connection. Clients should reconnect before two minutes to avoid the connection timeout.
- Reconnect timeout: 40 seconds
- After receiving the events, a client needs to reconnect to receive the next set of events. If the reconnection doesn't happen within 40 seconds, the server expires the subscription and the connection is closed. If this happens, the client must start again and handshake, subscribe, and connect.
Each Streaming API client logs into an instance and maintains a session. When the client handshakes, connects, or subscribes, the session timeout is restarted. A client session times out if the client doesn’t reconnect to the server within 40 seconds after receiving a response (an event, subscribe result, and so on).
If there's no activity on that session, then the organization timeout goes into effect and closes the session.