libwebsockets/lib
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
base64-decode.c remove bae64 decode and selftest 2013-09-18 20:57:59 +08:00
client-handshake.c make header protection unique remove __prefix 2013-10-26 20:23:00 +08:00
client-parser.c reflect send completeness in lws_write return 2013-02-23 10:50:10 +08:00
client.c Subject: [PATCH] Fixed the logging of OpenSSL errors to report the correct 2013-11-24 14:24:02 +08:00
daemonize.c Hide private library symbols 2013-03-30 09:52:21 +08:00
extension-deflate-frame.c style cleanup 2013-02-11 17:13:32 +08:00
extension-deflate-frame.h Separate compression levels for server and client, 2013-01-10 12:45:54 +08:00
extension-deflate-stream.c style cleanup 2013-02-11 17:13:32 +08:00
extension-deflate-stream.h remove fixed rx buffer allow definition per protocol 2013-02-08 13:16:07 +08:00
extension.c Hide private library symbols 2013-03-30 09:52:21 +08:00
getifaddrs.c style cleanup 2013-02-11 17:13:32 +08:00
getifaddrs.h make header protection unique remove __prefix 2013-10-26 20:23:00 +08:00
handshake.c solve broken partial file sends 2013-12-09 11:27:07 +08:00
lextable.h Support for HTTP POST. 2013-11-24 10:36:37 +08:00
libwebsockets.c handle EAGAIN during send 2013-12-09 14:16:17 +08:00
libwebsockets.h Support for HTTP POST. 2013-11-24 10:36:37 +08:00
minilex.c Support for HTTP POST. 2013-11-24 10:36:37 +08:00
output.c handle EAGAIN during send 2013-12-09 14:16:17 +08:00
parsers.c Support for HTTP POST. 2013-11-24 10:36:37 +08:00
private-libwebsockets.h handle EAGAIN during send 2013-12-09 14:16:17 +08:00
server-handshake.c reflect send completeness in lws_write return 2013-02-23 10:50:10 +08:00
server.c handle EAGAIN during send 2013-12-09 14:16:17 +08:00
sha-1.c Support _WIN32 in addition to WIN32 define 2013-11-04 10:04:31 +08:00