gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] 04/07: keepalive_possible(): check whether app requested


From: gnunet
Subject: [libmicrohttpd] 04/07: keepalive_possible(): check whether app requested close
Date: Wed, 28 Jul 2021 10:37:03 +0200

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

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 28223f6a59f15afbb35c3d8d813f296598a62c3b
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Tue Jun 8 21:02:57 2021 +0300

    keepalive_possible(): check whether app requested close
---
 src/microhttpd/connection.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index d1ecd339..2d3d5671 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -1145,6 +1145,10 @@ keepalive_possible (struct MHD_Connection *connection)
   if ( (NULL != connection->response) &&
        (0 != (connection->response->flags & MHD_RF_HTTP_VERSION_1_0_ONLY) ) )
     return MHD_NO;
+  if ( (NULL != connection->response) &&
+       (0 != (connection->response->flags_auto
+              & MHD_RAF_HAS_CONNECTION_CLOSE) ) )
+    return MHD_NO;
 
   if (MHD_IS_HTTP_VER_1_1_COMPAT (connection->http_ver) &&
       ( (NULL == connection->response) ||

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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