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

Make sure backend connections are blocking before we need them to be.



git-svn-id: http://www.varnish-cache.org/svn/trunk@2705 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent b9800902
......@@ -317,10 +317,10 @@ Fetch(struct sess *sp)
st->len = st->space;
WS_Assert(sp->obj->ws_o);
http_Setup(sp->obj->http, sp->obj->ws_o);
vc = VBE_GetFd(sp);
if (vc == NULL)
return (__LINE__);
TCP_blocking(vc->fd); /* XXX: we should timeout instead */
WRK_Reset(w, &vc->fd);
http_Write(w, hp, 0);
......
......@@ -80,6 +80,7 @@ PipeSession(struct sess *sp)
vc = VBE_GetFd(sp);
if (vc == NULL)
return;
TCP_blocking(vc->fd);
WRK_Reset(w, &vc->fd);
w->acct.hdrbytes += http_Write(w, bereq->http, 0);
......
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