commit 04bb482134976a0f5ce3633bdb12807237f1a8cb parent b39aacb24adfa2013b83c5efb6198d0555318807 Author: Evgeny Grin (Karlson2k) <k2k@narod.ru> Date: Mon, 26 Oct 2020 11:35:00 +0300 new_connection_process_(): additional assert Diffstat:
| M | src/microhttpd/daemon.c | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git 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