[Libwebsockets] (no subject)

Simon Gauthier gauthier.simon at gmail.com
Fri Nov 29 16:20:36 CET 2013


Hi,

I think the send() call in output.c line 151 should check errno for EAGAIN
and EINTR if it returns -1 since the socket is open NONBLOCK.

It is easy to reproduce if you have some serious traffic going on, send
will sometime return EAGAIN. In that case the library will close the
connection.

In that case you can wait a couple of usecond and retry the send until
rescource is availible instead of bailing out.

Thank You

Simon Gauthier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libwebsockets.org/pipermail/libwebsockets/attachments/20131129/6142063d/attachment.html>


More information about the Libwebsockets mailing list