commit | 8294c1fa4f6485fa6c5f15078d609f62b3026d98 | [log] [tgz] |
---|---|---|
author | Joachim Bauch <mail@joachim-bauch.de> | Sat Jun 29 10:22:09 2013 +0800 |
committer | Andy Green <andy.green@linaro.org> | Sat Jun 29 10:22:09 2013 +0800 |
tree | 0bc1bbd0ca04eab4059db96cdf6a7cad4ef1cfbc | |
parent | eb51a7a6efc3c9941d3ccb862936395966deba7c [diff] [blame] |
Request "send" not to trigger SIGPIPE on errors.
diff --git a/lib/client-handshake.c b/lib/client-handshake.c index de99a20..2dd810c 100644 --- a/lib/client-handshake.c +++ b/lib/client-handshake.c
@@ -85,7 +85,7 @@ if (context->http_proxy_port) { - n = send(wsi->sock, context->service_buffer, plen, 0); + n = send(wsi->sock, context->service_buffer, plen, MSG_NOSIGNAL); if (n < 0) { compatible_close(wsi->sock); lwsl_debug("ERROR writing to proxy socket\n");