gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libmicrohttpd] 50/154: do use MSG_NOSIGNAL in send() if av


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] 50/154: do use MSG_NOSIGNAL in send() if available
Date: Mon, 19 Aug 2019 10:16:02 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository libmicrohttpd.

commit a0588fc0c2e70022753163fcad8bb95726c643c2
Author: Christian Grothoff <address@hidden>
AuthorDate: Mon Jul 22 18:12:46 2019 +0200

    do use MSG_NOSIGNAL in send() if available
---
 src/microhttpd/mhd_send.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
index 642fabbe..34c8e99f 100644
--- 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)

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]