]> err.no Git - varnish/commitdiff
Fix argument to http_BuildSbuf
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 25 Apr 2006 09:31:28 +0000 (09:31 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 25 Apr 2006 09:31:28 +0000 (09:31 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@155 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_pass.c
varnish-cache/bin/varnishd/cache_pipe.c

index ccb39794c028d203645db9fee20b45ba74d432a2..6dce02b2d6e578ac9e871532d22bfc939460a11f 100644 (file)
@@ -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));
 
index 67cca4fabf59d2eb33c404512668f0167dd6c855..9f02ce92ce40ef418dc1f263b8b241cc31303a9b 100644 (file)
@@ -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);