Closed dejj closed 11 years ago
+1. This breaks our app when we tried to upgrade to 0.8.20.
+1. The error seems to be coming from https://github.com/josephg/node-browserchannel/blob/master/lib/server.coffee#L910
Yep, that sure would crash browserchannel. Closed sockets throwing errors is annoying - though I can't complain too much since browserchannel has the same behaviour :)
The simplest fix is to make the write methods ( eg these: https://github.com/josephg/node-browserchannel/blob/master/lib/server.coffee#L180-L181 ) do nothing if the socket is already closed.
This actually seems to be resolved by simply upgrading to node v0.8.21
Yeah, this issue is isolated to 0.8.20. Just don't use that version of nodejs.
nodejs Node v0.8.20 (Stable) introduced the following change:
This breaks server.coffee on line 910 with the following error:
Setting the timeout needs to be wrapped in try-catch and possibly some error handling.
Also see: https://github.com/LearnBoost/socket.io/issues/1160