gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] 02/02: mhd_socket.c: fixed: unneeded zero-send on *BSD


From: gnunet
Subject: [libmicrohttpd] 02/02: mhd_socket.c: fixed: unneeded zero-send on *BSD
Date: Sat, 05 Dec 2020 15:46:16 +0100

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

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 4bc408168dd163218eabca11fed138bcb003c381
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Sat Dec 5 17:45:34 2020 +0300

    mhd_socket.c: fixed: unneeded zero-send on *BSD
    
    No need for zero-send on *BSD/Darwin if cork is set
---
 src/microhttpd/mhd_sockets.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/microhttpd/mhd_sockets.c b/src/microhttpd/mhd_sockets.c
index c5c6f90d..a00330a3 100644
--- a/src/microhttpd/mhd_sockets.c
+++ b/src/microhttpd/mhd_sockets.c
@@ -520,6 +520,7 @@ MHD_socket_cork_ (MHD_socket sock,
   /* FreeBSD do not need zero-send for flushing starting from version 9 */
   return 1;
 #elif defined(TCP_NOPUSH) && ! defined(TCP_CORK)
+  if (! on)
   {
     const int dummy = 0;
     /* Force flush data with zero send otherwise Darwin and some BSD systems

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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