You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Yann Ylavic <yl...@gmail.com> on 2017/02/24 07:10:52 UTC
Re: svn commit: r1784228 - in /httpd/httpd/trunk: docs/manual/mod/mod_proxy_hcheck.xml
modules/proxy/mod_proxy_hcheck.c
On Fri, Feb 24, 2017 at 5:49 AM, <ji...@apache.org> wrote:
> Author: jim
> Date: Fri Feb 24 04:49:38 2017
> New Revision: 1784228
>
> URL: http://svn.apache.org/viewvc?rev=1784228&view=rev
> Log:
> Instead of thread-pools for each server/context, use a server-wide
> top-level threadpool, which is more efficient.
>
> Modified:
> httpd/httpd/trunk/modules/proxy/mod_proxy_hcheck.c
>
> Modified: httpd/httpd/trunk/modules/proxy/mod_proxy_hcheck.c
> URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/mod_proxy_hcheck.c?rev=1784228&r1=1784227&r2=1784228&view=diff
> ==============================================================================
> --- httpd/httpd/trunk/modules/proxy/mod_proxy_hcheck.c (original)
> +++ httpd/httpd/trunk/modules/proxy/mod_proxy_hcheck.c Fri Feb 24 04:49:38 2017
>
> @@ -86,13 +84,15 @@ static void *hc_create_config(apr_pool_t
> ctx->templates = apr_array_make(p, 10, sizeof(hc_template_t));
> ctx->conditions = apr_table_make(p, 10);
> ctx->hcworkers = apr_hash_make(p);
> - ctx->tpsize = HC_THREADPOOL_SIZE;
> ctx->s = s;
>
> return ctx;
> }
>
> static ap_watchdog_t *watchdog;
> +static apr_thread_pool_t *hctp = NULL;
> +static int tpsize = HC_THREADPOOL_SIZE;
Maybe init 'tpsize' in pre_config for --enable-proxy_check=static restarts?
Regards,
Yann.