You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the case where the remote client disappears (i.e, the connection doesn't get explicitly closed) the SSE client remains active indefinitely, with no disconnect events being fired.
To reproduce:
Start an SSE server using this module.
Connect to the eventsource from a mobile device (I used an android tablet)
After connecting, turn off WiFi
Observe that even after the tcp_keepalive_time has expired, and even after sending regular "keepalive" packets to the client, the connection never registers as dropped, resulting in a leak.
The text was updated successfully, but these errors were encountered:
In the file, sseclient.js, in SSEClient constructor, you will see a line hooking the res (responses) close event to the close event. This should be changed to the req (request) close event:
Running as a server.
In the case where the remote client disappears (i.e, the connection doesn't get explicitly closed) the SSE client remains active indefinitely, with no disconnect events being fired.
To reproduce:
The text was updated successfully, but these errors were encountered: