LearnBoost/socket.io — Issue #644: Crash Socket.io when 2 connections at the same moment
Author: zelkin
Created: 2011-11-15 11:08:31+00:00
State: open

Hi all, i've a problem with a repetitive crash on socket.io.
In fact, when i launch 2 connection in the same time (with 2 browsergame), i've this error :

[code]
net.js:391
throw new Error('Socket is not writable');
^
Error: Socket is not writable
at Socket._writeOut (net.js:391:11)
at Socket.write (net.js:377:17)
at Socket. (/home/smet/node/www/test.js:42:8)
at Socket.$emit (events.js:64:17)
at SocketNamespace.handlePacket (/home/smet/node/node_modules/socket.io/
lib/namespace.js:335:22)
at Manager.onClientMessage (/home/smet/node/node_modules/socket.io/lib/m
anager.js:459:38)
at WebSocket.onMessage (/home/smet/node/node_modules/socket.io/lib/trans
port.js:387:20)
at Parser. (/home/smet/node/node_modules/socket.io/lib/transp
orts/websocket/hybi-07-12.js:40:10)
at Parser.emit (events.js:64:17)
at /home/smet/node/node_modules/socket.io/lib/transports/websocket/hybi-
07-12.js:286:16[/code]

I use socket.io with net.js to connect on an other server.

Do you know what is the problem ?