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");