gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] branch master updated: if suspended on POST before 100 C


From: gnunet
Subject: [libmicrohttpd] branch master updated: if suspended on POST before 100 CONTINUE, give application a second chance to queue non-100 CONTINUE response
Date: Fri, 29 Nov 2019 23:25:58 +0100

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

grothoff pushed a commit to branch master
in repository libmicrohttpd.

The following commit(s) were added to refs/heads/master by this push:
     new 8869259c if suspended on POST before 100 CONTINUE, give application a 
second chance to queue non-100 CONTINUE response
8869259c is described below

commit 8869259c7f19179208af31bf3e182ced81d748e3
Author: Christian Grothoff <address@hidden>
AuthorDate: Fri Nov 29 23:23:05 2019 +0100

    if suspended on POST before 100 CONTINUE, give application a second chance 
to queue non-100 CONTINUE response
---
 ChangeLog                   | 4 ++++
 src/include/microhttpd.h    | 2 +-
 src/microhttpd/connection.c | 2 ++
 3 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 90f6d7b7..3461e356 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Fri 29 Nov 2019 11:22:25 PM CET
+    If application suspends a connection before we could send 100 CONTINUE,
+    give application another shot at queuing a reply before the upload begins. 
-CG
+
 Sat 26 Oct 2019 06:53:05 PM CEST
     Fix regression where MHD would fail to return an empty response
     when used with HTTPS.
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index 61d6ec23..bf821e64 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -132,7 +132,7 @@ typedef intptr_t ssize_t;
  * Current version of the library.
  * 0x01093001 = 1.9.30-1.
  */
-#define MHD_VERSION 0x00096800
+#define MHD_VERSION 0x00096801
 
 /**
  * MHD-internal return code for "YES".
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index fe5efff4..52f57aec 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -3401,6 +3401,8 @@ MHD_connection_handle_idle (struct MHD_Connection 
*connection)
       call_connection_handler (connection);     /* first call */
       if (MHD_CONNECTION_CLOSED == connection->state)
         continue;
+      if (connection->suspended)
+        continue;
       if (need_100_continue (connection))
       {
         connection->state = MHD_CONNECTION_CONTINUE_SENDING;

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



reply via email to

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