Commit f6d0af2e authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

Check for a negative return from HTC_Rx(). Probably needs revisiting.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2162 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 97e6e411
......@@ -331,6 +331,13 @@ Fetch(struct sess *sp)
i = HTC_Rx(htc);
while (i == 0);
if (i < 0) {
VBE_UpdateHealth(sp, vc, -1);
VBE_ClosedFd(sp->wrk, vc);
/* XXX: other cleanup ? */
return (__LINE__);
}
if (http_DissectResponse(sp->wrk, htc, hp)) {
VBE_UpdateHealth(sp, vc, -2);
VBE_ClosedFd(sp->wrk, vc);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment