mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
tests: Sleeps over 20 seconds if nginx failed to exit immediately
Sometimes nginx failed to exit cleanly in the expected time. This patch adds the capability to wait for more 20 seconds.
This commit is contained in:
parent
fb4e1f1b6b
commit
445783d067
@ -581,7 +581,12 @@ sub nginx_stop {
|
||||
|
||||
sleep 0.5;
|
||||
if (-e $PID_FILE) {
|
||||
msg("Nginx stop failed: $PID_FILE still exists");
|
||||
vrb("Nginx pid file still exists, sleeping for more 20 seconds.");
|
||||
sleep 20;
|
||||
|
||||
if (-e $PID_FILE) {
|
||||
msg("Nginx stop failed: $PID_FILE still exists");
|
||||
}
|
||||
}
|
||||
|
||||
return $rc;
|
||||
|
Loading…
x
Reference in New Issue
Block a user