commit - f2479500fa3de375ffb51a479b8f62492a2910e0
commit + 4cc2763a045dcd208b2970334b86431aeacb2c02
blob - 9423798849bcdb1251ee05697a43a4fe8717d337
blob + 938d0a33d67424291b2611ccad448bda9769e9c3
--- src/libhttpd/parsereq.c
+++ src/libhttpd/parsereq.c
* later requests have to come quickly.
* only works for http/1.1 or later.
*/
- alarm(timeout);
+ if(timeout)
+ alarm(timeout);
if(hgethead(c, 0) < 0)
return -1;
- alarm(0);
+ if(timeout)
+ alarm(0);
c->reqtime = time(nil);
c->req.meth = getword(c);
if(c->req.meth == nil){