various bug fixes
This commit is contained in:
parent
4f48d1d4f7
commit
2e965b3324
12 changed files with 82 additions and 41 deletions
|
|
@ -41,8 +41,8 @@ hparsereq(HConnect *c, int timeout)
|
|||
* only works for http/1.1 or later.
|
||||
*/
|
||||
alarm(timeout);
|
||||
if(!hgethead(c, 0))
|
||||
return 0;
|
||||
if(hgethead(c, 0) < 0)
|
||||
return -1;
|
||||
alarm(0);
|
||||
c->reqtime = time(nil);
|
||||
c->req.meth = getword(c);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue