r155 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Tue Apr 25 11:31:28 CEST 2006
Author: phk
Date: 2006-04-25 11:31:28 +0200 (Tue, 25 Apr 2006)
New Revision: 155
Modified:
trunk/varnish-cache/bin/varnishd/cache_pass.c
trunk/varnish-cache/bin/varnishd/cache_pipe.c
Log:
Fix argument to http_BuildSbuf
Modified: trunk/varnish-cache/bin/varnishd/cache_pass.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_pass.c 2006-04-25 09:30:53 UTC (rev 154)
+++ trunk/varnish-cache/bin/varnishd/cache_pass.c 2006-04-25 09:31:28 UTC (rev 155)
@@ -44,7 +44,7 @@
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 @@
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));
Modified: trunk/varnish-cache/bin/varnishd/cache_pipe.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_pipe.c 2006-04-25 09:30:53 UTC (rev 154)
+++ trunk/varnish-cache/bin/varnishd/cache_pipe.c 2006-04-25 09:31:28 UTC (rev 155)
@@ -52,7 +52,7 @@
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);
More information about the varnish-commit
mailing list