]> git.cameronkatri.com Git - mandoc.git/commitdiff
be a bit more patient, 1s is sometimes insufficient for legitimate queries
authorIngo Schwarze <schwarze@openbsd.org>
Tue, 7 Oct 2014 18:20:06 +0000 (18:20 +0000)
committerIngo Schwarze <schwarze@openbsd.org>
Tue, 7 Oct 2014 18:20:06 +0000 (18:20 +0000)
cgi.c

diff --git a/cgi.c b/cgi.c
index 8e120efa102eadcf2374668c1811b416d72e0466..4cb4fa9224fcecdec637c5400b46e0706b2f9e2c 100644 (file)
--- a/cgi.c
+++ b/cgi.c
@@ -1,4 +1,4 @@
-/*     $Id: cgi.c,v 1.98 2014/09/27 11:17:36 kristaps Exp $ */
+/*     $Id: cgi.c,v 1.99 2014/10/07 18:20:06 schwarze Exp $ */
 /*
  * Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2014 Ingo Schwarze <schwarze@usta.de>
@@ -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));