gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [libmicrohttpd] 49/154: more OLDSOCK.


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] 49/154: more OLDSOCK.
Date: Mon, 19 Aug 2019 10:16:01 +0200

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

ng0 pushed a commit to branch master
in repository libmicrohttpd.

commit 4ebff9dc1650c9532f9dcff8d3c57a0e71e6bd29
Author: ng0 <address@hidden>
AuthorDate: Mon Jul 22 15:51:16 2019 +0000

    more OLDSOCK.
---
 src/microhttpd/connection.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 887ad391..1893de15 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -558,6 +558,7 @@ socket_start_extra_buffering (struct MHD_Connection 
*connection)
 _MHD_static_inline bool
 socket_start_no_buffering (struct MHD_Connection *connection)
 {
+#if OLD_SOCKOPT
 #if defined(MHD_TCP_CORK_NOPUSH)
   if (connection->sk_tcp_cork_nopush_on)
     {
@@ -590,6 +591,7 @@ socket_start_no_buffering (struct MHD_Connection 
*connection)
     }
 #endif /* TCP_NODELAY */
   return connection->sk_tcp_nodelay_on && !connection->sk_tcp_cork_nopush_on;
+#endif /* OLD_SOCKOPT */
 }
 
 
@@ -607,6 +609,7 @@ socket_start_no_buffering_flush (struct MHD_Connection 
*connection)
 #if defined(TCP_NOPUSH) && !defined(TCP_CORK)
   const int dummy = 0;
 #endif /* !TCP_CORK */
+#if OLD_SOCKOPT
 #if defined(TCP_CORK) || (defined(__FreeBSD__) &&  __FreeBSD__+0 >= 9)
   const MHD_SCKT_OPT_BOOL_ off_val = 0;
   /* Switching off TCP_CORK flush buffer even
@@ -620,7 +623,7 @@ socket_start_no_buffering_flush (struct MHD_Connection 
*connection)
       connection->sk_tcp_cork_nopush_on = false;
     }
 #endif /* MHD_TCP_CORK_NOPUSH */
-
+#endif /* OLD_SOCKOPT */
   res = socket_start_no_buffering (connection);
 #if defined(__FreeBSD__) &&  __FreeBSD__+0 >= 9
   /* FreeBSD do not need zero-send for flushing starting from version 9 */
@@ -646,6 +649,7 @@ _MHD_static_inline bool
 socket_start_normal_buffering (struct MHD_Connection *connection)
 {
   mhd_assert(NULL != connection);
+#if OLD_SOCKOPT
 #if defined(MHD_TCP_CORK_NOPUSH)
   if (connection->sk_tcp_cork_nopush_on)
     {
@@ -678,6 +682,7 @@ socket_start_normal_buffering (struct MHD_Connection 
*connection)
     }
 #endif /* TCP_NODELAY */
   return !connection->sk_tcp_nodelay_on && !connection->sk_tcp_cork_nopush_on;
+#endif
 }
 
 

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



reply via email to

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