kripken/emscripten — pull request #815 by caiiiycuk (2013-01-31 16:15:32+00:00)
Title: Partial recive of package in recv (websockets)

Found problem with recv implementation. If length of buffer is more than parameter len then rest of packet is discarded.

For example OpenTTD read length of packet with recv (len = 2 bytes) after that it read rest of packet with readed length. So in current implementation actual packet data is lost.

I try to implement right behavior. All websockets test passed.