[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libmicrohttpd] 48/154: connection.c: preprocessor ifdef so
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libmicrohttpd] 48/154: connection.c: preprocessor ifdef some setsockopts. |
Date: |
Mon, 19 Aug 2019 10:16:00 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository libmicrohttpd.
commit 6d1993c5c1f52e259d5f5dacde5e321a3b1a19f2
Author: ng0 <address@hidden>
AuthorDate: Mon Jul 22 15:29:56 2019 +0000
connection.c: preprocessor ifdef some setsockopts.
---
src/microhttpd/connection.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 4d93acee..887ad391 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -501,6 +501,7 @@ _MHD_static_inline bool
socket_start_extra_buffering (struct MHD_Connection *connection)
{
mhd_assert(NULL != connection);
+#if OLD_SOCKOPT
#if defined(TCP_NODELAY)
if (connection->sk_tcp_nodelay_on)
{
@@ -517,7 +518,9 @@ socket_start_extra_buffering (struct MHD_Connection
*connection)
}
}
#endif /* TCP_NODELAY */
+#endif /* OLD_SOCKOPT */
+#if OLD_SOCKOPT
#if defined(MHD_TCP_CORK_NOPUSH)
if (!connection->sk_tcp_cork_nopush_on)
{
@@ -534,12 +537,15 @@ socket_start_extra_buffering (struct MHD_Connection
*connection)
}
}
#endif /* MHD_TCP_CORK_NOPUSH */
+#endif /* OLD_SOCKOPT */
+#if OLD_SOCKOPT
#if defined(TCP_NODELAY)
return connection->sk_tcp_cork_nopush_on && !connection->sk_tcp_nodelay_on;
#else /* ! TCP_NODELAY */
return connection->sk_tcp_cork_nopush_on;
#endif /* ! TCP_NODELAY */
+#endif /* OLD_SOCKOPT */
}
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [GNUnet-SVN] [libmicrohttpd] 36/154: implement TCP_NOPUSH branch content, (continued)
- [GNUnet-SVN] [libmicrohttpd] 36/154: implement TCP_NOPUSH branch content, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 34/154: Use s in setsockopt(), gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 38/154: check getsockopt's., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 64/154: move sendfile function work to connection.c, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 58/154: start SENDMSG/WRITEV., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 60/154: doxygen fix., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 57/154: cover the case of TCP_NOPUSH and TCP_CORK coexisting on the same OS., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 56/154: doxygen, links, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 52/154: doxygen, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 40/154: doxygen for _send2, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 48/154: connection.c: preprocessor ifdef some setsockopts.,
gnunet <=
- [GNUnet-SVN] [libmicrohttpd] 46/154: Merge remote-tracking branch 'origin/master' into dev/ng0/gsoc2019, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 53/154: reminder, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 41/154: doxygen for send_, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 50/154: do use MSG_NOSIGNAL in send() if available, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 47/154: Merge remote-tracking branch 'origin/master' into dev/ng0/gsoc2019, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 42/154: indent, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 54/154: Merge branch 'dev/ng0/gsoc2019' of git+ssh://gnunet.org/libmicrohttpd into dev/ng0/gsoc2019, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 51/154: gnutls cork integration, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 61/154: incomplete commit, adding 2 new helper functions and more., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 69/154: function replace., gnunet, 2019/08/19