socket.io icon indicating copy to clipboard operation
socket.io copied to clipboard

targetStart out of bounds in websocket

Open crickeys opened this issue 14 years ago • 2 comments

Getting a lot of these on server with about 3000 connections to it

Error: targetStart out of bounds at Buffer.copy (buffer.js:486:11) at Parser.add (/home/node/node_modules/socket.io/lib/transports/websocket/hybi-16.js:456:8) at Socket. (/home/node/node_modules/socket.io/lib/transports/websocket/hybi-16.js:142:17) at Socket.emit (events.js:67:17) at TCP.onread (net.js:329:14)

Also these which totally kills the server RangeError: Maximum call stack size exceeded

Unfortunately, it doesn't have a stack trace.

crickeys avatar Jan 10 '12 22:01 crickeys

We really should upgrade to the parsers from ws. I've fixed several bugs there, compared to the ones in socket.io... :/

einaros avatar Jan 10 '12 22:01 einaros

this might have to do with running out of memory and an unknown memory leak I'm investigating.

crickeys avatar Jan 11 '12 05:01 crickeys