[Varnish] #141: Varnish 1.1 dies with missing errorhandling code in VRT_l_req_hash
Varnish
varnish-bugs at projects.linpro.no
Sun Aug 5 21:37:16 CEST 2007
#141: Varnish 1.1 dies with missing errorhandling code in VRT_l_req_hash
-----------------------------------------------+----------------------------
Reporter: anders | Owner: phk
Type: defect | Status: reopened
Priority: high | Milestone:
Component: varnishd | Version: 1.1
Severity: major | Resolution:
Keywords: varnishd core dump VRT_l_req_hash |
-----------------------------------------------+----------------------------
Changes (by anders):
* status: closed => reopened
* resolution: duplicate =>
Comment:
I do not have vcl_hash defined at all. This is my VCL code:
backend default {
set backend.host = "192.168.0.3";
set backend.port = "80";
}
acl purge {
"192.168.0.4"/32;
}
sub vcl_recv {
if ((req.http.host ~ "^(cache.finn.no|finn.no|www.finn.no)$") ||
(req.http.host == "banner.finn.no" && req.url ~
"^/(jsp2|finn/gojsp|daily|board|auximg/papirfly|finn/cacheable|crossdomain.xml)"))
{
if (req.request == "GET" || req.request == "HEAD") {
lookup;
} elsif (req.request == "PURGE") {
if (!client.ip ~ purge) {
error 405 "Not allowed.";
}
lookup;
} else {
pipe;
}
} else {
error 403 "Access denied. Contact cacheadmin at finn.no if
you have problems.";
}
}
sub vcl_miss {
if (req.request == "PURGE") {
error 404 "Not in cache.";
} else {
fetch;
}
}
sub vcl_hit {
if (req.request == "PURGE") {
set obj.ttl = 0s;
error 200 "Purged.";
} else {
deliver;
}
}
sub vcl_fetch {
if (obj.ttl < 86400s) {
set obj.ttl = 604800s;
}
if (obj.http.Cookie) {
remove obj.http.Cookie;
}
if (obj.http.Set-Cookie) {
remove obj.http.Set-Cookie;
}
insert;
}
--
Ticket URL: <http://varnish.projects.linpro.no/ticket/141#comment:3>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list