Re: Problems with varnish 1.1 and obj.status

2007-07-24 Thread Thomas Westlund
Hi, On Tue, Jul 24, 2007 at 10:42:34AM +0200, Dag-Erling Smørgrav wrote: > Dag-Erling Smørgrav <[EMAIL PROTECTED]> writes: > > Looks like an oversight; resp.status is both readable and writable, but > > obj.status is write-only. > > Try the attached patch. The patch works, I'm now able to contr

Re: Problems with varnish 1.1 and obj.status

2007-07-24 Thread Dag-Erling Smørgrav
Dag-Erling Smørgrav <[EMAIL PROTECTED]> writes: > Looks like an oversight; resp.status is both readable and writable, but > obj.status is write-only. Try the attached patch. DES -- Dag-Erling Smørgrav Senior Software Developer Linpro AS - www.linpro.no Index: bin/varnishd/cache_vrt.c ==

Re: Problems with varnish 1.1 and obj.status

2007-07-24 Thread Dag-Erling Smørgrav
Thomas Westlund <[EMAIL PROTECTED]> writes: > Varnish fails at restart with the following response: > > Starting varnishd. > Problem loading compiled VCL program: > ./bin.U5BscB9E: Undefined symbol "VRT_r_obj_status" > > If I remove the "if (obj.status == 404)" statement everything works just fine.

Problems with varnish 1.1 and obj.status

2007-07-23 Thread Thomas Westlund
Hi, I've just uppgraded to varnish 1.1 The upgrade worked just fine and varnish started with my old vcl-file without problems. However when I added the following to sub vcl_fetch {} if (obj.status == 404) { pass; } else { set obj.ttl = 900s; insert; } Varnish fails at restart