allow signals during send

Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
Andy Green 2014-04-06 12:41:20 +01:00
parent 8e18fe3a94
commit 485abc1c66

View file

@ -543,7 +543,7 @@ lws_ssl_capable_write_no_ssl(struct libwebsocket *wsi, unsigned char *buf, int l
{
int n;
n = send(wsi->sock, buf, len, MSG_NOSIGNAL);
n = send(wsi->sock, buf, len, 0);
if (n < 0) {
if (LWS_ERRNO == LWS_EAGAIN ||
LWS_ERRNO == LWS_EWOULDBLOCK ||