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

Fix a bug when ESI elements span storage elements, which only the

tightfisted -smalloc would trigger.

Fixes: #719



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4975 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 3744e714
......@@ -622,8 +622,8 @@ parse_esi_tag(struct esi_work *ew, int closing)
* XXX: Ideally, we should only pull together the bits
* XXX: we need, like the filename.
*/
ew->tag.b = ew->sp->obj->ws_o->f;
ew->tag.e = ew->tag.b + WS_Reserve(ew->sp->obj->ws_o, 0);
ew->tag.b = ew->sp->wrk->ws->f;
ew->tag.e = ew->tag.b + WS_Reserve(ew->sp->wrk->ws, 0);
px = ew->s;
q = ew->tag.b;
while (px.p != ew->p.p) {
......@@ -632,7 +632,7 @@ parse_esi_tag(struct esi_work *ew, int closing)
Nep(&px);
}
ew->tag.e = q;
WS_Release(ew->sp->obj->ws_o, Tlen(ew->tag));
WS_Release(ew->sp->wrk->ws, Tlen(ew->tag));
}
ll = Tlen(ew->tag);
ew->tag.b++;
......
......@@ -31,7 +31,7 @@ server s1 {
}
} -start
varnish v1 -vcl+backend {
varnish v1 -storage "-smalloc,2m" -vcl+backend {
sub vcl_fetch {
esi;
}
......
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