From 03e5414c59bb7cbf7fd79d11937a0a974d9090b1 Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 25 Apr 2006 09:31:28 +0000 Subject: [PATCH] Fix argument to http_BuildSbuf git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@155 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_pass.c | 4 ++-- varnish-cache/bin/varnishd/cache_pipe.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/varnish-cache/bin/varnishd/cache_pass.c b/varnish-cache/bin/varnishd/cache_pass.c index ccb39794..6dce02b2 100644 --- a/varnish-cache/bin/varnishd/cache_pass.c +++ b/varnish-cache/bin/varnishd/cache_pass.c @@ -44,7 +44,7 @@ PassSession(struct worker *w, struct sess *sp) fd = VBE_GetFd(sp->backend, &fd_token); assert(fd != -1); - http_BuildSbuf(0, w->sb, sp->http); + http_BuildSbuf(1, w->sb, sp->http); i = write(fd, sbuf_data(w->sb), sbuf_len(w->sb)); assert(i == sbuf_len(w->sb)); @@ -61,7 +61,7 @@ PassSession(struct worker *w, struct sess *sp) event_base_loop(w->eb, 0); http_Dissect(sp2.http, sp2.fd, 2); - http_BuildSbuf(1, w->sb, sp2.http); + http_BuildSbuf(2, w->sb, sp2.http); i = write(sp->fd, sbuf_data(w->sb), sbuf_len(w->sb)); assert(i == sbuf_len(w->sb)); diff --git a/varnish-cache/bin/varnishd/cache_pipe.c b/varnish-cache/bin/varnishd/cache_pipe.c index 67cca4fa..9f02ce92 100644 --- a/varnish-cache/bin/varnishd/cache_pipe.c +++ b/varnish-cache/bin/varnishd/cache_pipe.c @@ -52,7 +52,7 @@ PipeSession(struct worker *w, struct sess *sp) fd = VBE_GetFd(sp->backend, &fd_token); assert(fd != -1); - http_BuildSbuf(0, w->sb, sp->http); + http_BuildSbuf(0, w->sb, sp->http); /* XXX: 0 ?? */ i = write(fd, sbuf_data(w->sb), sbuf_len(w->sb)); assert(i == sbuf_len(w->sb)); assert(__LINE__ == 0); -- 2.39.5