query MPM after all config is loaded (fixes #786)

This commit is contained in:
Sander Hoentjen 2017-03-03 09:54:05 +01:00 committed by Felipe Zimmerle
parent a2eb4c8b04
commit 0f59d4e044
No known key found for this signature in database
GPG Key ID: E6DFB08CE8B11277

View File

@ -690,6 +690,11 @@ static int hook_post_config(apr_pool_t *mp, apr_pool_t *mp_log, apr_pool_t *mp_t
change_server_signature(s);
}
/* For connection level hook */
ap_mpm_query(AP_MPMQ_HARD_LIMIT_THREADS, &thread_limit);
ap_mpm_query(AP_MPMQ_HARD_LIMIT_DAEMONS, &server_limit);
#if (!(defined(WIN32) || defined(NETWARE)))
/* Internal chroot functionality */
@ -1672,10 +1677,6 @@ static void register_hooks(apr_pool_t *mp) {
APR_REGISTER_OPTIONAL_FN(modsec_register_reqbody_processor);
#endif
/* For connection level hook */
ap_mpm_query(AP_MPMQ_HARD_LIMIT_THREADS, &thread_limit);
ap_mpm_query(AP_MPMQ_HARD_LIMIT_DAEMONS, &server_limit);
/* Main hooks */
ap_hook_pre_config(hook_pre_config, NULL, NULL, APR_HOOK_FIRST);
ap_hook_post_config(hook_post_config, postconfig_beforeme_list,