gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [libmicrohttpd] 57/154: cover the case of TCP_NOPUSH and TC


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] 57/154: cover the case of TCP_NOPUSH and TCP_CORK coexisting on the same OS.
Date: Mon, 19 Aug 2019 10:16:09 +0200

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

ng0 pushed a commit to branch master
in repository libmicrohttpd.

commit e87675bff7ec5ed0b35d67baf27d139df1394597
Author: ng0 <address@hidden>
AuthorDate: Mon Jul 22 17:43:19 2019 +0000

    cover the case of TCP_NOPUSH and TCP_CORK coexisting on the same OS.
---
 src/microhttpd/mhd_send.c | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
index 1acd3cdf..210ad658 100644
--- a/src/microhttpd/mhd_send.c
+++ b/src/microhttpd/mhd_send.c
@@ -381,14 +381,14 @@ MHD_send_on_connection2_ (struct MHD_Connection 
*connection,
                              TCP_CORK,
                              (const void *) &off_val,
                              sizeof (off_val)))
-          ;
+          {
+            connection->sk_tcp_nodelay_on = true;
+          }
       }
     errno = eno;
   }
   return ret;
-#endif
-
-#if TCP_NOPUSH
+#elif TCP_NOPUSH
   if (use_corknopush)
     {
       eno;
@@ -402,7 +402,9 @@ MHD_send_on_connection2_ (struct MHD_Connection *connection,
                                TCP_NOPUSH,
                                (const void *) &off_val,
                                sizeof (off_val)))
-            ;
+            {
+              connection->sk_tcp_nodelay_on = false;
+            }
         }
       errno = eno;
     }

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



reply via email to

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