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

zero means 'all' to http_GetTail()


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@481 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent f4e2620c
...@@ -59,7 +59,7 @@ PipeSession(struct worker *w, struct sess *sp) ...@@ -59,7 +59,7 @@ PipeSession(struct worker *w, struct sess *sp)
http_BuildSbuf(vc->fd, Build_Pipe, w->sb, sp->http); http_BuildSbuf(vc->fd, Build_Pipe, w->sb, sp->http);
i = write(vc->fd, sbuf_data(w->sb), sbuf_len(w->sb)); i = write(vc->fd, sbuf_data(w->sb), sbuf_len(w->sb));
assert(i == sbuf_len(w->sb)); assert(i == sbuf_len(w->sb));
if (http_GetTail(sp->http, 99999999, &b, &e) && b != e) { /* XXX */ if (http_GetTail(sp->http, 0, &b, &e) && b != e) { /* XXX */
i = write(vc->fd, b, e - b); i = write(vc->fd, b, e - b);
if (i != e - b) { if (i != e - b) {
close (vc->fd); close (vc->fd);
......
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