Commit f664be2c authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Always release WRW, also on error.



git-svn-id: http://www.varnish-cache.org/svn/trunk@3446 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 856e4e45
...@@ -353,12 +353,7 @@ Fetch(struct sess *sp) ...@@ -353,12 +353,7 @@ Fetch(struct sess *sp)
/* Deal with any message-body the request might have */ /* Deal with any message-body the request might have */
i = FetchReqBody(sp); i = FetchReqBody(sp);
if (i > 0) { if (WRW_FlushRelease(w) || i > 0) {
VBE_ClosedFd(sp);
return (__LINE__);
}
if (WRW_FlushRelease(w)) {
VBE_ClosedFd(sp); VBE_ClosedFd(sp);
/* XXX: other cleanup ? */ /* XXX: other cleanup ? */
return (__LINE__); return (__LINE__);
......
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