[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.
- [libmicrohttpd] branch master updated (237aebfa -> 182ed3a0), gnunet, 2021/07/28
- [libmicrohttpd] 02/07: try_ready_chunked_body: use new string function, fixes., gnunet, 2021/07/28
- [libmicrohttpd] 03/07: response: use auto flag for chunked encoding header, gnunet, 2021/07/28
- [libmicrohttpd] 07/07: response: use macro instead of string for connection header, gnunet, 2021/07/28
- [libmicrohttpd] 05/07: Re-written chunk footer generation function as a separate function, gnunet, 2021/07/28
- [libmicrohttpd] 01/07: Added internal functions for printing decimal and hex numbers, gnunet, 2021/07/28
- [libmicrohttpd] 04/07: keepalive_possible(): check whether app requested close,
gnunet <=
- [libmicrohttpd] 06/07: Added new public API function MHD_get_reason_phrase_len_for(), gnunet, 2021/07/28