don't touch the alarm when there is no timeout
diff --git a/src/libhttpd/parsereq.c b/src/libhttpd/parsereq.c
index 9423798..938d0a3 100644
--- a/src/libhttpd/parsereq.c
+++ b/src/libhttpd/parsereq.c
@@ -40,10 +40,12 @@
 	 * 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){