1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00
libwebsockets/test-server
Andy Green 51b20ee92a test server kill skt with minus 1
The client spams the server with mirror protocol content
and then closes the connection.  However the server wants to
send that content back to all the mirror protocol
connections, including the one that closed.

The result is during the send back phase we usually see an
error trying to send to the close client connection. Because
we don't return -1, we don't close it on server side and the
error repeats a lot before finally closing.  This is a side-
effect of a recent patch to drain pending input before
really closing a dead connection.

This patch just changes it to return -1 on the failed send
attempt assertively closing the connection.

Signed-off-by: Andy Green <andy.green@linaro.org>
2013-02-17 09:14:08 +08:00
..
.gitignore Ignoring linux build files 2013-01-09 15:46:11 +08:00
attack.sh introduce attack script 2013-02-12 14:16:09 +08:00
favicon.ico refactor-into-dirs.patch 2010-11-01 09:12:17 +00:00
leaf.jpg add by hand http send example 2013-02-14 23:24:07 +08:00
libwebsockets.org-logo.png add libwebsockets.org logo to share 2013-01-16 10:00:39 +08:00
Makefile.am add by hand http send example 2013-02-14 23:24:07 +08:00
test-client.c Fixed DLL compilation on Windows for CMake. 2013-02-13 09:29:26 +08:00
test-echo.c update echo to use externsion getting api 2013-02-13 09:34:53 +08:00
test-fraggle.c fragge able to send chunks larger than rx buffer 2013-02-14 14:19:26 +08:00
test-ping.c Fixed DLL compilation on Windows for CMake. 2013-02-13 09:29:26 +08:00
test-server.c test server kill skt with minus 1 2013-02-17 09:14:08 +08:00
test.html add by hand http send example 2013-02-14 23:24:07 +08:00