From 6f1e8849bda4ee7e7170189ecdb7cec1a5a6d15a Mon Sep 17 00:00:00 2001 From: Andy Green Date: Mon, 12 Oct 2015 08:43:36 +0800 Subject: [PATCH] use send MSG_NOSIGNAL after https://github.com/fancycode/libwebsockets/commit/810dbadd6b4cc3e192d050c81fc3ec8e652c41c6 Signed-off-by: Andy Green --- lib/output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/output.c b/lib/output.c index ce426dab..f375f0e5 100644 --- a/lib/output.c +++ b/lib/output.c @@ -590,7 +590,7 @@ lws_ssl_capable_write_no_ssl(struct libwebsocket *wsi, unsigned char *buf, int l { int n; - n = send(wsi->sock, buf, len, 0); + n = send(wsi->sock, buf, len, MSG_NOSIGNAL); if (n >= 0) return n;