From ab00e3652ae08997f4eb0cd41e34c86874cd4eb9 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Tue, 7 Oct 2014 18:20:06 +0000 Subject: be a bit more patient, 1s is sometimes insufficient for legitimate queries --- cgi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cgi.c b/cgi.c index ac4a727e..1145a150 100644 --- a/cgi.c +++ b/cgi.c @@ -1033,9 +1033,9 @@ main(void) /* Poor man's ReDoS mitigation. */ - itimer.it_value.tv_sec = 1; + itimer.it_value.tv_sec = 2; itimer.it_value.tv_usec = 0; - itimer.it_interval.tv_sec = 1; + itimer.it_interval.tv_sec = 2; itimer.it_interval.tv_usec = 0; if (setitimer(ITIMER_VIRTUAL, &itimer, NULL) == -1) { fprintf(stderr, "setitimer: %s\n", strerror(errno)); -- cgit