[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 02/05: mhd_send: always call post_cork_setsockopt() afte
From: |
gnunet |
Subject: |
[libmicrohttpd] 02/05: mhd_send: always call post_cork_setsockopt() after send() |
Date: |
Sun, 29 Nov 2020 19:50:11 +0100 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit f06d01317db1fa58ff756183ee075c8dd4d2b4f4
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Sun Nov 29 19:15:43 2020 +0300
mhd_send: always call post_cork_setsockopt() after send()
---
src/microhttpd/mhd_send.c | 4 ++--
1 file 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,
else if (buffer_size > (size_t) ret)
connection->epoll_state &= ~MHD_EPOLL_STATE_WRITE_READY;
#endif /* EPOLL_SUPPORT */
- if (buffer_size == (size_t) ret)
- post_cork_setsockopt (connection, want_cork);
+ post_cork_setsockopt (connection,
+ want_cork ? (buffer_size == (size_t) ret) : false);
}
return ret;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] branch master updated (ad8a3e3f -> 7ef7bab3), gnunet, 2020/11/29
- [libmicrohttpd] 01/05: enum MHD_SendSocketOptions: renamed values for clarity. The most important is to push the last peace of response data. Without pushing data, MHD is limited to 5 requests/second (on typical OS) with stay-alive clients., gnunet, 2020/11/29
- [libmicrohttpd] 02/05: mhd_send: always call post_cork_setsockopt() after send(),
gnunet <=
- [libmicrohttpd] 04/05: new_connection_prepare_(): fixed: CORK is never on by default, gnunet, 2020/11/29
- [libmicrohttpd] 05/05: mhd_send: improved setting of sk_cork_on, gnunet, 2020/11/29
- [libmicrohttpd] 03/05: mhd_sockets: renamed macros for clarity, gnunet, 2020/11/29