node.js+socket.io运行中报错Cannot read property fragmentedOperation of null导致服务器停止
详细错误信息
D:\Program Files\nodejs\node_modules\socket.io\node_modules\engine.io\node_modules\ws\lib\Receiver.js:222
if (!this.state.fragmentedOperation) this.unfragmentedBufferPool.reset(true)
^
TypeError: Cannot read property 'fragmentedOperation' of null
at Receiver.endPacket (D:\Program Files\nodejs\node_modules\socket.io\node_m
odules\engine.io\node_modules\ws\lib\Receiver.js:222:18)
at Receiver.opcodes.1.finish (D:\Program Files\nodejs\node_modules\socket.io
\node_modules\engine.io\node_modules\ws\lib\Receiver.js:394:12)
at Receiver.<anonymous> (D:\Program Files\nodejs\node_modules\socket.io\node
_modules\engine.io\node_modules\ws\lib\Receiver.js:372:33)
at Receiver.add (D:\Program Files\nodejs\node_modules\socket.io\node_modules
\engine.io\node_modules\ws\lib\Receiver.js:87:24)
at Socket.firstHandler (D:\Program Files\nodejs\node_modules\socket.io\node_
modules\engine.io\node_modules\ws\lib\WebSocket.js:718:22)
at Socket.emit (events.js:95:17)
at Socket.<anonymous> (_stream_readable.js:764:14)
at Socket.emit (events.js:92:17)
at emitReadable_ (_stream_readable.js:426:10)
at emitReadable (_stream_readable.js:422:5)
**运行中有时候会报错node.js直接停止,重现方法不明,node.js版本v0.10.33,socket.io版本1.2.0**