https://issues.apache.org/bugzilla/show_bug.cgi?id=56645

--- Comment #3 from Yann Ylavic <[email protected]> ---
Maybe the following path can help?

Index: server/mpm/event/event.c
===================================================================
--- server/mpm/event/event.c    (revision 1603193)
+++ server/mpm/event/event.c    (working copy)
@@ -1975,7 +1975,9 @@ static void * APR_THREAD_FUNC listener_thread(apr_
                 int i = 0;
                 socket_callback_baton_t *baton = (socket_callback_baton_t *)
pt->baton;
                 if (baton->cancel_event) {
+                    apr_thread_mutex_lock(g_timer_skiplist_mtx);
                     baton->cancel_event->canceled = 1;
+                    apr_thread_mutex_unlock(g_timer_skiplist_mtx);
                 }

                 /* We only signal once per N sockets with this baton */
--

There seem to be a race between the cancellation check and set.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to