aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-07-22 09:47:43 +0000
committerng0 <ng0@n0.is>2019-07-22 09:47:43 +0000
commit640a37e2e6bdf6e580e97deb99db14ed536aeb4f (patch)
tree25dc5f29f8016f7003e9aa0d1b30270243053e64 /src/microhttpd
parent52a76e50b2fe3cccd6dc0a8844996d4f5809319c (diff)
downloadlibmicrohttpd-640a37e2e6bdf6e580e97deb99db14ed536aeb4f.tar.gz
libmicrohttpd-640a37e2e6bdf6e580e97deb99db14ed536aeb4f.zip
move comment above function.
Diffstat (limited to 'src/microhttpd')
-rw-r--r--src/microhttpd/mhd_send.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
index 7afaa69b..d2c99369 100644
--- a/src/microhttpd/mhd_send.c
+++ b/src/microhttpd/mhd_send.c
@@ -148,6 +148,10 @@ MHD_send_on_connection_ (struct MHD_Connection *connection,
148#endif 148#endif
149 149
150#if TCP_CORK 150#if TCP_CORK
151 /* When we have CORK, we can have NODELAY on the same system,
152 * at least since Linux 2.2 and both can be combined since
153 * Linux 2.5.71. For more details refer to tcp(7) on Linux.
154 * No other system in 2019-06 has TCP_CORK. */
151 if ((! using_tls) && (use_corknopush) && (have_cork && ! want_cork)) 155 if ((! using_tls) && (use_corknopush) && (have_cork && ! want_cork))
152 { 156 {
153 if (0 == setsockopt (s, 157 if (0 == setsockopt (s,
@@ -166,9 +170,6 @@ MHD_send_on_connection_ (struct MHD_Connection *connection,
166 { 170 {
167 connection->sk_tcp_nodelay = true; 171 connection->sk_tcp_nodelay = true;
168 } 172 }
169 /* When we have CORK, we can have NODELAY on the same system,
170 * at least since Linux 2.2 and both can be combined since
171 * Linux 2.5.71. See tcp(7). No other system in 2019-06 has TCP_CORK. */
172 } 173 }
173#elif TCP_NOPUSH 174#elif TCP_NOPUSH
174 /* TCP_NOPUSH on FreeBSD is equal to cork on Linux, with the 175 /* TCP_NOPUSH on FreeBSD is equal to cork on Linux, with the