Muhammet
12/07/2025, 9:40 AMclose, error, and timeout events are never triggered on the server side,
- the server continues writing data with no feedback that the real client is gone,
- stale SSE connections remain in memory and cannot be cleaned up correctly.
I currently rely on several heuristic workarounds, such as:
- marking a connection as dead if no successful write occurs within a certain time window,
- monitoring pending writes to detect possible dead streams,
- running periodic checks to validate connection state.
These strategies help mitigate the issue but are not fully reliable, since they rely on indirect signals rather than a definitive disconnect notification from the network layer.
For this reason, I need clarification on the following points:
1. Does Apify Standby mode enforce any specific timeout, keep-alive, or proxy behavior for SSE connections?
2. Is there any officially recommended method to detect dead SSE clients when running behind the Apify proxy?
3. Can additional HTTP headers influence how the proxy handles disconnects or keep-alives?Answer Overflow
12/07/2025, 9:40 AMjiri.spilka
12/08/2025, 7:50 AMMuhammet
12/08/2025, 4:12 PModdlot2677
03/11/2026, 7:13 PM