commit | 9e4c917c274f8049d2b13d52a3de7df629d28255 | [log] [tgz] |
---|---|---|
author | Andy Green <andy.green@linaro.org> | Sun Feb 10 09:06:38 2013 +0800 |
committer | Andy Green <andy.green@linaro.org> | Sun Feb 10 09:06:38 2013 +0800 |
tree | 21ea261e91c640127f2cb48978a792e470f67680 | |
parent | a690cd066ec7b1673437ed3a330d4a29a76e94af [diff] |
fix broken listen socket piggybacking As reported here http://libwebsockets.org/trac/ticket/11 the code for connection storm handling had rotted, fds[0] is no longer always related to the listen socket when serving. This patch updates it to determine the listen socket correctly to stop infinite recursion here. Reported-by: amn Signed-off-by: Andy Green <andy.green@linaro.org>