commit | 52aeb2f9b9c67c777b683206afaa12050251a689 | [log] [tgz] |
---|---|---|
author | rsc <devnull@localhost> | Thu May 20 18:22:53 2004 +0000 |
committer | rsc <devnull@localhost> | Thu May 20 18:22:53 2004 +0000 |
tree | 3160a7c4eddff67eee9d89497704ac791acccf97 | |
parent | 4cc2763a045dcd208b2970334b86431aeacb2c02 [diff] [blame] |
more timeout avoidance
diff --git a/src/libhttpd/parse.c b/src/libhttpd/parse.c index 8e8364b..de37f91 100644 --- a/src/libhttpd/parse.c +++ b/src/libhttpd/parse.c
@@ -197,10 +197,12 @@ memset(&h, 0, sizeof(h)); h.c = c; - alarm(timeout); + if(timeout) + alarm(timeout); if(hgethead(c, 1) < 0) return -1; - alarm(0); + if(timeout) + alarm(0); h.hstart = c->hpos; if(setjmp(h.jmp) == -1)