1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-30 00:00:16 +01:00
libwebsockets/test-server
Andy Green 2764eba89f handle EAGAIN during send
This patch deploys the truncated send work to buffer output in case
either send() or the SSL send return a temporary "unable to send"
condition even though they signalled as writeable.

I added a by-default #if 0 test jig which enforces only half of what
you want to send is sendable, this is working when enabled.

One subtle change is that the pipe reports choked if there is any
pending remaining truncated send.  Otherwise it should be transparent.

Hopefully...

Signed-off-by: Andy Green <andy.green@linaro.org>
2013-12-09 14:16:17 +08:00
..
.gitignore Ignoring linux build files 2013-01-09 15:46:11 +08:00
attack.sh introduce uri args 2013-11-13 07:45:17 +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
test-client.c trac 40 client connection properly nonblocking 2013-09-20 20:26:12 +08:00
test-echo.c trac 29 echo remoe mention of syslog constants for win32 2013-05-02 07:04:54 +08:00
test-fraggle.c reflect send completeness in lws_write return 2013-02-23 10:50:10 +08:00
test-ping.c reflect send completeness in lws_write return 2013-02-23 10:50:10 +08:00
test-server.c handle EAGAIN during send 2013-12-09 14:16:17 +08:00
test.html add by hand http send example 2013-02-14 23:24:07 +08:00