mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
Request "send" not to trigger SIGPIPE on errors.
This commit is contained in:
parent
0c9563bbd2
commit
810dbadd6b
2 changed files with 2 additions and 2 deletions
|
@ -85,7 +85,7 @@ struct libwebsocket *__libwebsocket_client_connect_2(
|
|||
|
||||
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");
|
||||
|
|
|
@ -229,7 +229,7 @@ int lws_client_socket_service(struct libwebsocket_context *context,
|
|||
else
|
||||
#endif
|
||||
n = send(wsi->sock, context->service_buffer,
|
||||
p - (char *)context->service_buffer, 0);
|
||||
p - (char *)context->service_buffer, MSG_NOSIGNAL);
|
||||
lws_latency(context, wsi,
|
||||
"send or SSL_write LWS_CONNMODE...HANDSHAKE",
|
||||
n, n >= 0);
|
||||
|
|
Loading…
Add table
Reference in a new issue