mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-28 04:09:31 +03:00
move comment above function.
This commit is contained in:
@@ -148,6 +148,10 @@ MHD_send_on_connection_ (struct MHD_Connection *connection,
|
||||
#endif
|
||||
|
||||
#if TCP_CORK
|
||||
/* When we have CORK, we can have NODELAY on the same system,
|
||||
* at least since Linux 2.2 and both can be combined since
|
||||
* Linux 2.5.71. For more details refer to tcp(7) on Linux.
|
||||
* No other system in 2019-06 has TCP_CORK. */
|
||||
if ((! using_tls) && (use_corknopush) && (have_cork && ! want_cork))
|
||||
{
|
||||
if (0 == setsockopt (s,
|
||||
@@ -166,9 +170,6 @@ MHD_send_on_connection_ (struct MHD_Connection *connection,
|
||||
{
|
||||
connection->sk_tcp_nodelay = true;
|
||||
}
|
||||
/* When we have CORK, we can have NODELAY on the same system,
|
||||
* at least since Linux 2.2 and both can be combined since
|
||||
* Linux 2.5.71. See tcp(7). No other system in 2019-06 has TCP_CORK. */
|
||||
}
|
||||
#elif TCP_NOPUSH
|
||||
/* TCP_NOPUSH on FreeBSD is equal to cork on Linux, with the
|
||||
|
||||
Reference in New Issue
Block a user