diff options
author | Stefan Eissing <icing@apache.org> | 2023-03-05 10:42:53 +0100 |
---|---|---|
committer | Stefan Eissing <icing@apache.org> | 2023-03-05 10:42:53 +0100 |
commit | d3607972c842eb2945f61f89259a9e4cd416a24d (patch) | |
tree | bc0608ebfc7a11fe9b17c01b0b59d9711522b4f1 /modules/http2/h2_workers.c | |
parent | Test case updates related to macOS ventura changes: (diff) | |
download | apache2-d3607972c842eb2945f61f89259a9e4cd416a24d.tar.xz apache2-d3607972c842eb2945f61f89259a9e4cd416a24d.zip |
*) mod_htt2: recent small improvements from the github/icing/mod_h2
- conditional use of ap_thread* to allow compilation on older versions
- fixed checks on CONNECT requests
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1908079 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/http2/h2_workers.c')
-rw-r--r-- | modules/http2/h2_workers.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/http2/h2_workers.c b/modules/http2/h2_workers.c index e7e2039b90..192dbc04f8 100644 --- a/modules/http2/h2_workers.c +++ b/modules/http2/h2_workers.c @@ -131,8 +131,13 @@ static apr_status_t activate_slot(h2_workers *workers) apr_pool_tag(pool, "h2_worker_slot"); slot->pool = pool; +#if defined(AP_HAS_THREAD_LOCAL) rv = ap_thread_create(&slot->thread, workers->thread_attr, slot_run, slot, slot->pool); +#else + rv = apr_thread_create(&slot->thread, workers->thread_attr, + slot_run, slot, slot->pool); +#endif cleanup: if (rv != APR_SUCCESS) { |