gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] 04/05: keepalive_possible: do not use "Keep-Alive" with


From: gnunet
Subject: [libmicrohttpd] 04/05: keepalive_possible: do not use "Keep-Alive" with read-closed connections
Date: Tue, 08 Jun 2021 08:58:21 +0200

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

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit b0400609faa4c00d60a215f29ff3999ee95496f0
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Mon Jun 7 21:29:15 2021 +0300

    keepalive_possible: do not use "Keep-Alive" with read-closed connections
---
 src/microhttpd/connection.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 0d7ba27b..cf22f41b 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -1128,6 +1128,9 @@ keepalive_possible (struct MHD_Connection *connection)
 {
   if (MHD_CONN_MUST_CLOSE == connection->keepalive)
     return MHD_NO;
+  /* TODO: use additional flags, like "error_closure" */
+  if (connection->read_closed)
+    return MHD_NO;
   if ( (NULL != connection->response) &&
        (0 != (connection->response->flags & MHD_RF_HTTP_VERSION_1_0_ONLY) ) )
     return MHD_NO;

-- 
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]