Commit 98c23bb1 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

A restart in vcl_fetch{} needs to loose the objcore as well.

Fixes #1253
parent e7025e7c
varnishtest "restarting a pass in vcl_fetch should not panic"
server s1 {
rxreq
txresp -status 304 -body "1234"
accept
rxreq
txresp -status 200 -body "56"
} -start
varnish v1 -vcl+backend {
sub vcl_recv {
return (pass);
}
sub vcl_fetch {
if (beresp.status != 200) {
return (restart);
}
}
} -start
client c1 {
txreq
rxresp
expect resp.bodylen == 2
} -run
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