diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2020-12-05 17:45:34 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2020-12-05 17:45:34 +0300 |
commit | 4bc408168dd163218eabca11fed138bcb003c381 (patch) | |
tree | af86c3ac880ab8c35e0556109fe31a3d76669bc6 | |
parent | 964c8e951e22587290d350213eda71e0cfaa954d (diff) | |
download | libmicrohttpd-4bc408168dd163218eabca11fed138bcb003c381.tar.gz libmicrohttpd-4bc408168dd163218eabca11fed138bcb003c381.zip |
mhd_socket.c: fixed: unneeded zero-send on *BSD
No need for zero-send on *BSD/Darwin if cork is set
-rw-r--r-- | src/microhttpd/mhd_sockets.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/microhttpd/mhd_sockets.c b/src/microhttpd/mhd_sockets.c index c5c6f90d..a00330a3 100644 --- a/src/microhttpd/mhd_sockets.c +++ b/src/microhttpd/mhd_sockets.c | |||
@@ -520,6 +520,7 @@ MHD_socket_cork_ (MHD_socket sock, | |||
520 | /* FreeBSD do not need zero-send for flushing starting from version 9 */ | 520 | /* FreeBSD do not need zero-send for flushing starting from version 9 */ |
521 | return 1; | 521 | return 1; |
522 | #elif defined(TCP_NOPUSH) && ! defined(TCP_CORK) | 522 | #elif defined(TCP_NOPUSH) && ! defined(TCP_CORK) |
523 | if (! on) | ||
523 | { | 524 | { |
524 | const int dummy = 0; | 525 | const int dummy = 0; |
525 | /* Force flush data with zero send otherwise Darwin and some BSD systems | 526 | /* Force flush data with zero send otherwise Darwin and some BSD systems |