commit a0588fc0c2e70022753163fcad8bb95726c643c2
parent 4ebff9dc1650c9532f9dcff8d3c57a0e71e6bd29
Author: Christian Grothoff <christian@grothoff.org>
Date: Mon, 22 Jul 2019 18:12:46 +0200
do use MSG_NOSIGNAL in send() if available
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
@@ -207,9 +207,9 @@ MHD_send_on_connection_ (struct MHD_Connection *connection,
ret = send (s,
buffer,
buffer_size,
- (want_cork ? MSG_MORE : 0));
+ MAYBE_MSG_NOSIGNAL | (want_cork ? MSG_MORE : 0));
#else
- ret = send (connection->socket_fd, buffer, buffer_size, 0);
+ ret = send (connection->socket_fd, buffer, buffer_size, MAYBE_MSG_NOSIGNAL);
#endif
if (0 > ret)