[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd2] 03/12: mhd_response_check_frozen_freeze(): fixed assert
From: |
Admin |
Subject: |
[libmicrohttpd2] 03/12: mhd_response_check_frozen_freeze(): fixed assert |
Date: |
Fri, 06 Jun 2025 16:01:11 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd2.
commit 0a3e9e305620fa37e515eb9b2f9f7b75dd3fb99f
Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
AuthorDate: Wed Jun 4 02:22:25 2025 +0200
mhd_response_check_frozen_freeze(): fixed assert
---
src/mhd2/response_funcs.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/mhd2/response_funcs.c b/src/mhd2/response_funcs.c
index b15ee98..f4576dc 100644
--- a/src/mhd2/response_funcs.c
+++ b/src/mhd2/response_funcs.c
@@ -35,7 +35,6 @@
#include "mhd_locks.h"
#include "response_options.h"
-
#include "mhd_atomic_counter.h"
@@ -118,15 +117,18 @@ mhd_response_check_frozen_freeze (struct MHD_Response
*restrict response)
if (response->reuse.reusable)
{
- need_unlock = true;
mhd_mutex_lock_chk (&(response->reuse.settings_lock));
- mhd_assert (1 == mhd_atomic_counter_get (&(response->reuse.counter)));
+ need_unlock = true;
}
else
need_unlock = false;
if (! response->frozen)/* Re-check under the lock */
+ {
+ mhd_assert ((! response->reuse.reusable) || \
+ (1 == mhd_atomic_counter_get (&(response->reuse.counter))));
response_set_properties (response);
+ }
if (need_unlock)
mhd_mutex_unlock_chk (&(response->reuse.settings_lock));
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd2] branch master updated (2e6777f -> cdd4c1f), Admin, 2025/06/06
- [libmicrohttpd2] 03/12: mhd_response_check_frozen_freeze(): fixed assert,
Admin <=
- [libmicrohttpd2] 01/12: Added missing includes for "mhd_assert.h", sorted some includes, Admin, 2025/06/06
- [libmicrohttpd2] 04/12: Improved error reporting for the listen socket creation, Admin, 2025/06/06
- [libmicrohttpd2] 06/12: mhd_stream_finish_req_serving(): minor simplification, Admin, 2025/06/06
- [libmicrohttpd2] 05/12: perf_replies: muted compiler warning, Admin, 2025/06/06
- [libmicrohttpd2] 02/12: Unified debug macro checks, Admin, 2025/06/06
- [libmicrohttpd2] 09/12: Added detection and used "externally_visible" function attribute, Admin, 2025/06/06
- [libmicrohttpd2] 07/12: mhd_atomic_counter: fixed formatting, fixed single thread version build, Admin, 2025/06/06
- [libmicrohttpd2] 08/12: configure: improved test for alignof() detection, Admin, 2025/06/06
- [libmicrohttpd2] 10/12: Implemented and used counters based on atomic variables, Admin, 2025/06/06
- [libmicrohttpd2] 12/12: get_all_net_updates_by_epoll(): reduced the size of the data passed to the kernel, Admin, 2025/06/06