Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Websockets - Avoids trying to use an empty buffer
Sometimes, in a SSL secure connection, the receiveCallback is called with an empty buffer and len == 0. At those times, the websocket client gets confused. At connection time, it may not receive the Upgrade answer and disconnect. At all other times, it would try to accumulate the payload until it exaust all memory and fails.
- Loading branch information