[PATCH] backend conditional requests first release

Poul-Henning Kamp phk at phk.freebsd.dk
Wed Mar 2 23:46:42 CET 2011


(I talked with Geoff on IRC about one aspect of the patch which
didn't look nice, the tendency for the ttl/grace stuff to leak
all over the place.)

I've spent the evening trying to untangle ttl/grace and generalize it
in a way that will make adding the conditiona_timeout (that is sort
of a long word, isn't it ?) easier to fit in.

You should now be able to add the field to struct exp, add the
variables to the VCC python file, macro-calls in cache_vrt_var.c
and hide the rest of it in cache_expire.c

Note the call to EXP_Grace() in update_object_when(), you'll need
to update that as well.  (I'll take care of -spersistence, please
don't touch that)

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.




More information about the varnish-dev mailing list