diff options
author | rsc <devnull@localhost> | 2004-05-20 18:22:53 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-05-20 18:22:53 +0000 |
commit | 52aeb2f9b9c67c777b683206afaa12050251a689 (patch) | |
tree | 3160a7c4eddff67eee9d89497704ac791acccf97 /src/libhttpd | |
parent | 4cc2763a045dcd208b2970334b86431aeacb2c02 (diff) | |
download | plan9port-52aeb2f9b9c67c777b683206afaa12050251a689.tar.gz plan9port-52aeb2f9b9c67c777b683206afaa12050251a689.tar.bz2 plan9port-52aeb2f9b9c67c777b683206afaa12050251a689.zip |
more timeout avoidance
Diffstat (limited to 'src/libhttpd')
-rw-r--r-- | src/libhttpd/parse.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libhttpd/parse.c b/src/libhttpd/parse.c index 8e8364b0..de37f91c 100644 --- a/src/libhttpd/parse.c +++ b/src/libhttpd/parse.c @@ -197,10 +197,12 @@ hparseheaders(HConnect *c, int timeout) 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) |