mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-29 04:09:31 +03:00
mhd_socket.c: fixed: unneeded zero-send on *BSD
No need for zero-send on *BSD/Darwin if cork is set
This commit is contained in:
1 file changed
+1
@@ -520,6 +520,7 @@ MHD_socket_cork_ (MHD_socket sock,
|
||||
/* FreeBSD do not need zero-send for flushing starting from version 9 */
|
||||
return 1;
|
||||
#elif defined(TCP_NOPUSH) && ! defined(TCP_CORK)
|
||||
if (! on)
|
||||
{
|
||||
const int dummy = 0;
|
||||
/* Force flush data with zero send otherwise Darwin and some BSD systems
|
||||
|
||||
Reference in new issue
Block a user