]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
mod_proxy_http2: explicitely apr_thread_exit() at the end of slot_run().
authorYann Ylavic <ylavic@apache.org>
Fri, 20 Nov 2020 16:55:10 +0000 (16:55 +0000)
committerYann Ylavic <ylavic@apache.org>
Fri, 20 Nov 2020 16:55:10 +0000 (16:55 +0000)
Calling apr_thread_exit() before returning from the thread function avoids
leaking the thread's pool (until/unless APR-2.0 is used).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1883668 13f79535-47bb-0310-9956-ffa450edef68

modules/http2/h2_workers.c

index 1831e31e98b363137576de396f8a2befac39bf25..949ae439c7f46df35d05607cb2c1e8beb7ed41d0 100644 (file)
@@ -244,6 +244,8 @@ static void* APR_THREAD_FUNC slot_run(apr_thread_t *thread, void *wctx)
     }
 
     slot_done(slot);
+
+    apr_thread_exit(thread, APR_SUCCESS);
     return NULL;
 }