gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libmicrohttpd] 110/154: check before post_ function if we


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] 110/154: check before post_ function if we need to set want_cork to false
Date: Mon, 19 Aug 2019 10:17:02 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository libmicrohttpd.

commit abc998d21921c5f183bea6818c25b1d3b7df09bb
Author: ng0 <address@hidden>
AuthorDate: Mon Jul 29 17:20:40 2019 +0000

    check before post_ function if we need to set want_cork to false
---
 src/microhttpd/mhd_send.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
index 8f34d8d4..2ea4dfa3 100644
--- a/src/microhttpd/mhd_send.c
+++ b/src/microhttpd/mhd_send.c
@@ -340,6 +340,9 @@ MHD_send_on_connection2_ (struct MHD_Connection *connection,
   ret = writev (s, vector, iovcnt);
 #endif
 
+  if (ret == header_len + buffer_len)
+    want_cork = false;
+
   post_cork_setsockopt (connection, want_cork);
 
   return ret;

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]