diff options
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) |