LearnBoost/socket.io — pull request #1519 by DeadAlready (2014-05-09 07:42:12+00:00)
Title: Fix issue with longstanding connections

Pull request https://github.com/LearnBoost/socket.io/pull/1346 introduced an issue with long connections, because the _dataLength variable in the parser was never reset to 0.

Fix this issue by reseting the variable when the parser gets an error, closes or reaches the end of a packet.