mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
If using xhr-polling and a browser closes a tab or window, the disconnectSync in the socket.io-client method is called which sends an XHR request to the server indicating a disconnect. This line would cause that to be ignored and so the server would have to wait for a timeout to mark them as disconnect. This was possibly because it was sent from a different tcp socket than the current connection.