mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
query MPM after all config is loaded (fixes #786)
This commit is contained in:
parent
a2eb4c8b04
commit
0f59d4e044
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user