summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-10-07 18:20:06 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-10-07 18:20:06 +0000
commitab00e3652ae08997f4eb0cd41e34c86874cd4eb9 (patch)
tree2fd11bfc54413a9f3daa45c704f600b6b7726728
parent847e143953798733354192e2afa9dc903f328ac3 (diff)
downloadmandoc-ab00e3652ae08997f4eb0cd41e34c86874cd4eb9.tar.gz
be a bit more patient, 1s is sometimes insufficient for legitimate queries
-rw-r--r--cgi.c4
1 files 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));