LearnBoost/socket.io-client — Issue #332: Chrome not properly disconnecting from WebSockets
Author: perezd
Created: 2011-11-07 22:11:25+00:00
State: open

Chrome never noticed that it was disconnected, not even via heartbeat timeout. I understand that there is a patch in place to fix that event for disconnect on heartbeat timeout, but the interesting problem here with chrome is that if I refresh the page, it appears that Chrome is reusing the socket of the previous session, and not actually ever disconnecting.

I setup this test, and killed the internet to see if disconnect would fire. Immediately, safari noticed a disconnect and fired the event properly.

example: http://imgur.com/KBWxU (top is chrome 15.0.x, bottom is Safari 5.1)