Commit 508e433d authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Loop until we have read it all


git-svn-id: http://www.varnish-cache.org/svn/trunk@143 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent b5febe3f
......@@ -91,10 +91,13 @@ FetchSession(struct worker *w, struct sess *sp)
p += i;
cl -= i;
}
if (cl != 0) {
while (cl != 0) {
i = read(sp2.fd, p, cl);
assert(i > 0);
VSL(SLT_Debug, 0, "R i %d cl %jd", i, cl);
assert(i == cl);
p += i;
cl -= i;
}
HttpdBuildSbuf(1, 1, w->sb, &sp2);
......
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