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:
Evgeny Grin (Karlson2k) committed 2020-12-05 17:45:34 +03:00
1 parent 964c8e951e
commit 4bc408168d
1 file changed
+1
+1
View File
@@ -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