[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 31/156: connection: skip no-op calling of body generatio
From: |
gnunet |
Subject: |
[libmicrohttpd] 31/156: connection: skip no-op calling of body generation functions when response body is not used |
Date: |
Sun, 28 May 2023 17:51:24 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to tag v0.9.77
in repository libmicrohttpd.
commit 2a1ff2f9a236cc33b9dd5177ea478332e14be942
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Tue Sep 27 14:54:05 2022 +0300
connection: skip no-op calling of body generation functions when response
body is not used
---
src/microhttpd/connection.c | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 589ce2b7..b668d934 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -4721,10 +4721,15 @@ MHD_connection_handle_idle (struct MHD_Connection
*connection)
}
#endif /* UPGRADE_SUPPORT */
- if (connection->rp_props.chunked)
- connection->state = MHD_CONNECTION_CHUNKED_BODY_UNREADY;
+ if (connection->rp_props.send_reply_body)
+ {
+ if (connection->rp_props.chunked)
+ connection->state = MHD_CONNECTION_CHUNKED_BODY_UNREADY;
+ else
+ connection->state = MHD_CONNECTION_NORMAL_BODY_UNREADY;
+ }
else
- connection->state = MHD_CONNECTION_NORMAL_BODY_UNREADY;
+ connection->state = MHD_CONNECTION_FOOTERS_SENT;
continue;
case MHD_CONNECTION_NORMAL_BODY_READY:
/* nothing to do here */
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] 42/156: configure: try to detect whether eventfd is enabled, (continued)
- [libmicrohttpd] 42/156: configure: try to detect whether eventfd is enabled, gnunet, 2023/05/28
- [libmicrohttpd] 35/156: mhd_assert: use "DEBUG" macro defined by some toolchains, gnunet, 2023/05/28
- [libmicrohttpd] 33/156: mhd_str: fixed compiler warning for compact code, gnunet, 2023/05/28
- [libmicrohttpd] 26/156: Fixed very rare data races when closing upgraded connection, gnunet, 2023/05/28
- [libmicrohttpd] 30/156: configure: fixed underquoting, typos, wording, gnunet, 2023/05/28
- [libmicrohttpd] 32/156: configure: fixed typos in messages, gnunet, 2023/05/28
- [libmicrohttpd] 23/156: Fixed wrong variable type used for result of gnutls_priority_init(), gnunet, 2023/05/28
- [libmicrohttpd] 41/156: configure: used better detection of some functions when cross-compiling, gnunet, 2023/05/28
- [libmicrohttpd] 27/156: test_http_reasons: fixed compiler warnings, gnunet, 2023/05/28
- [libmicrohttpd] 29/156: Remove double adding of MHD_HTTP_HEADER_CONNECTION response header, gnunet, 2023/05/28
- [libmicrohttpd] 31/156: connection: skip no-op calling of body generation functions when response body is not used,
gnunet <=
- [libmicrohttpd] 43/156: -typo, gnunet, 2023/05/28
- [libmicrohttpd] 21/156: internal.h: fixed incorrect use of enum value as preprocessor value, gnunet, 2023/05/28
- [libmicrohttpd] 40/156: Added new M4 helper macro, gnunet, 2023/05/28
- [libmicrohttpd] 39/156: test_get_iovec: fixed missing include headers, gnunet, 2023/05/28
- [libmicrohttpd] 45/156: MHD_get_version_bin(): added new function, gnunet, 2023/05/28
- [libmicrohttpd] 44/156: add assertion to guard against bad behavior described in #7196, also document that after suspending one must return MHD_YES, gnunet, 2023/05/28
- [libmicrohttpd] 49/156: mhd_check_func.m4: fixed macro, gnunet, 2023/05/28
- [libmicrohttpd] 46/156: mhd_norm_expd.m4: added autoconf helper macro, gnunet, 2023/05/28
- [libmicrohttpd] 55/156: mhd_check_link_run.m4: fixed typo in comment, gnunet, 2023/05/28
- [libmicrohttpd] 48/156: mhd_check_func.m4: fixed overquoting, gnunet, 2023/05/28