diff options
author | Yann Ylavic <ylavic@apache.org> | 2020-11-20 17:55:10 +0100 |
---|---|---|
committer | Yann Ylavic <ylavic@apache.org> | 2020-11-20 17:55:10 +0100 |
commit | ac64069f56f9eabd9fa57bc4f1642bcbff36bb60 (patch) | |
tree | e5786056cbc75c13b3a0a51f60bfed1e6ab2b72c /modules/http2/h2_workers.c | |
parent | mod_ssl_ct: join the threads before their parent pools are destroyed. (diff) | |
download | apache2-ac64069f56f9eabd9fa57bc4f1642bcbff36bb60.tar.xz apache2-ac64069f56f9eabd9fa57bc4f1642bcbff36bb60.zip |
mod_proxy_http2: explicitely apr_thread_exit() at the end of slot_run().
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
Diffstat (limited to '')
-rw-r--r-- | modules/http2/h2_workers.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/http2/h2_workers.c b/modules/http2/h2_workers.c index 1831e31e98..949ae439c7 100644 --- a/modules/http2/h2_workers.c +++ b/modules/http2/h2_workers.c @@ -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; } |