mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-16 07:56:12 +03:00
Do not pause if we are not the main request. See #124.
This commit is contained in:
parent
46d7a5ec6f
commit
23bd6b4331
@ -83,8 +83,8 @@ int perform_interception(modsec_rec *msr) {
|
|||||||
*/
|
*/
|
||||||
log_level = (actionset->log != 1) ? 4 : 1;
|
log_level = (actionset->log != 1) ? 4 : 1;
|
||||||
|
|
||||||
/* Pause the request first (if configured to do so). */
|
/* Pause the request first (if configured to do so and the main request). */
|
||||||
if (actionset->intercept_pause) {
|
if (actionset->intercept_pause && (msr->r->main == NULL)) {
|
||||||
msr_log(msr, (log_level > 3 ? log_level : log_level + 1), "Pausing transaction for "
|
msr_log(msr, (log_level > 3 ? log_level : log_level + 1), "Pausing transaction for "
|
||||||
"%i msec.", actionset->intercept_pause);
|
"%i msec.", actionset->intercept_pause);
|
||||||
/* apr_sleep accepts microseconds */
|
/* apr_sleep accepts microseconds */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user