diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-10-07 18:20:06 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-10-07 18:20:06 +0000 |
commit | ab00e3652ae08997f4eb0cd41e34c86874cd4eb9 (patch) | |
tree | 2fd11bfc54413a9f3daa45c704f600b6b7726728 | |
parent | 847e143953798733354192e2afa9dc903f328ac3 (diff) | |
download | mandoc-ab00e3652ae08997f4eb0cd41e34c86874cd4eb9.tar.gz |
be a bit more patient, 1s is sometimes insufficient for legitimate queries
-rw-r--r-- | cgi.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)); |