diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2020-11-29 19:15:43 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2020-11-29 19:41:22 +0300 |
commit | f06d01317db1fa58ff756183ee075c8dd4d2b4f4 (patch) | |
tree | 11a0a92a812695767d6c34d5c35148371731b3f2 | |
parent | 7f6084e6306b1a35a62a496e8335b41825a6b22d (diff) | |
download | libmicrohttpd-f06d01317db1fa58ff756183ee075c8dd4d2b4f4.tar.gz libmicrohttpd-f06d01317db1fa58ff756183ee075c8dd4d2b4f4.zip |
mhd_send: always call post_cork_setsockopt() after send()
-rw-r--r-- | src/microhttpd/mhd_send.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c index 764fd82d..3b9bc4d9 100644 --- a/src/microhttpd/mhd_send.c +++ b/src/microhttpd/mhd_send.c | |||
@@ -432,8 +432,8 @@ MHD_send_on_connection_ (struct MHD_Connection *connection, | |||
432 | else if (buffer_size > (size_t) ret) | 432 | else if (buffer_size > (size_t) ret) |
433 | connection->epoll_state &= ~MHD_EPOLL_STATE_WRITE_READY; | 433 | connection->epoll_state &= ~MHD_EPOLL_STATE_WRITE_READY; |
434 | #endif /* EPOLL_SUPPORT */ | 434 | #endif /* EPOLL_SUPPORT */ |
435 | if (buffer_size == (size_t) ret) | 435 | post_cork_setsockopt (connection, |
436 | post_cork_setsockopt (connection, want_cork); | 436 | want_cork ? (buffer_size == (size_t) ret) : false); |
437 | } | 437 | } |
438 | 438 | ||
439 | return ret; | 439 | return ret; |