summaryrefslogtreecommitdiff
path: root/modules/http2/mod_http2.c
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2018-02-01 14:42:07 +0000
committerYann Ylavic <ylavic@apache.org>2018-02-01 14:42:07 +0000
commit30dfcf3241e14c24b708df993c65d6a48d6271d5 (patch)
treed0ba167b2f4db9f77a6297be64563a7a7bef4cbf /modules/http2/mod_http2.c
parent8115db95a02d90088caee2782c045338f037cc90 (diff)
downloadhttpd-30dfcf3241e14c24b708df993c65d6a48d6271d5.tar.gz
mod_proxy: follow up to r1822849.
Get the help(er) of mod_http2 to determine how much connections should be handled in the reslist by default (i.e. max_threads). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1822878 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/http2/mod_http2.c')
-rw-r--r--modules/http2/mod_http2.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/http2/mod_http2.c b/modules/http2/mod_http2.c
index 19b565ef0d..86e9308f53 100644
--- a/modules/http2/mod_http2.c
+++ b/modules/http2/mod_http2.c
@@ -193,6 +193,11 @@ static void http2_req_engine_done(h2_req_engine *ngn, conn_rec *r_conn,
h2_mplx_req_engine_done(ngn, r_conn, status);
}
+static void http2_get_num_workers(server_rec *s, int *minw, int *maxw)
+{
+ h2_get_num_workers(s, minw, maxw);
+}
+
/* Runs once per created child process. Perform any process
* related initionalization here.
*/
@@ -218,6 +223,7 @@ static void h2_hooks(apr_pool_t *pool)
APR_REGISTER_OPTIONAL_FN(http2_req_engine_push);
APR_REGISTER_OPTIONAL_FN(http2_req_engine_pull);
APR_REGISTER_OPTIONAL_FN(http2_req_engine_done);
+ APR_REGISTER_OPTIONAL_FN(http2_get_num_workers);
ap_log_perror(APLOG_MARK, APLOG_TRACE1, 0, pool, "installing hooks");