more timeout avoidance
This commit is contained in:
parent
4cc2763a04
commit
52aeb2f9b9
1 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue