commit | 876534b0d5515543be72f2c92712ed841753a78f | [log] [tgz] |
---|---|---|
author | Pavel Borzenkov <pavel.borzenkov@auriga.com> | Fri Apr 15 13:16:58 2011 +0100 |
committer | Andy Green <andy.green@linaro.org> | Fri Apr 15 13:16:58 2011 +0100 |
tree | 5aeb1eed4b1c14c06a83d6bc6ce5a8cf79e92866 | |
parent | 71ea500081a9693555cc0ec55e892d5333b07eb0 [diff] |
recv() may not return all data While performing handshake recv() is called only once. It may return only part of the data and handshake will fail. This patch modifies libwebsocket_service_fd() to ensure that there is not data left in the socket. Signed-off-by: Pavel Borzenkov <pavel.borzenkov@auriga.com>