[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 01/03: new_connection_process_(): additional assert
From: |
gnunet |
Subject: |
[libmicrohttpd] 01/03: new_connection_process_(): additional assert |
Date: |
Mon, 26 Oct 2020 20:21:53 +0100 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 04bb482134976a0f5ce3633bdb12807237f1a8cb
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Mon Oct 26 11:35:00 2020 +0300
new_connection_process_(): additional assert
---
src/microhttpd/daemon.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 03649adf..fb3beecb 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -2656,6 +2656,12 @@ new_connection_process_ (struct MHD_Daemon *daemon,
int eno = 0;
mhd_assert (connection->daemon == daemon);
+
+ /* Function manipulate connection and timeout DL-lists,
+ * must be called only within daemon thread. */
+ mhd_assert ( (0 == (daemon->options & MHD_USE_INTERNAL_POLLING_THREAD)) || \
+ MHD_thread_ID_match_current_ (daemon->pid) );
+
/* Allocate memory pool in the processing thread so
* intensively used memory area is allocated in "good"
* (for the thread) memory region. It is important with
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.