more timeout avoidance

This commit is contained in:
rsc 2004-05-20 18:22:53 +00:00
parent 4cc2763a04
commit 52aeb2f9b9

View file

@ -197,9 +197,11 @@ hparseheaders(HConnect *c, int timeout)
memset(&h, 0, sizeof(h));
h.c = c;
if(timeout)
alarm(timeout);
if(hgethead(c, 1) < 0)
return -1;
if(timeout)
alarm(0);
h.hstart = c->hpos;