commit | c04c193dc36c674bd5eec13af8b5c821367c0d08 | [log] [tgz] |
---|---|---|
author | Nick Dowell <nick@nickdowell.com> | Thu Apr 05 10:29:39 2012 +0800 |
committer | Andy Green <andy.green@linaro.org> | Thu Apr 05 10:29:39 2012 +0800 |
tree | 8c6c26b31cbeace2ea8e9cb8e5fe47389163001f | |
parent | f803c0d9df4aa7a686cc330ca36f07c1aa97c5dd [diff] |
close connection if socket recv() fails. This prevents a problem observed on Windows whereby a client that disconnects before fully establishing the WebSocket would cause the server to use 100% CPU since recv() would continually return -1 for that socket. Signed-off-by: Nick Dowell <nick@nickdowell.com>