From 12f47a5652f90a1d86d7f6245d2d7f4dfae9f04e Mon Sep 17 00:00:00 2001
From: Ingo Schwarze <schwarze@openbsd.org>
Date: Tue, 7 Oct 2014 18:20:06 +0000
Subject: [PATCH] be a bit more patient, 1s is sometimes insufficient for
 legitimate queries

---
 cgi.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cgi.c b/cgi.c
index 8e120efa..4cb4fa92 100644
--- 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));
-- 
2.47.1