• Poul-Henning Kamp's avatar
    Add an experimental thread to lurk at the bottom of the ban-list · 833f5680
    Poul-Henning Kamp authored
    and try to push objects away from the tail end so that the list
    can be shortened.
    
    It won't work if your bans contains any req.* tests, because the
    lurker has no request to compare against.
    
    By default the lurker is disabled, you enable it by setting the
    'ban_lurker_sleep' parameter to the amount of time the lurker
    should sleep between doing things.
    
    If it cannot do anything, it always sleeps for a second.
    
    NB: This feature is on probation, there is currently no guarantee
    it will end up in a future varnish release, it depends on the
    impact and usability.  Feedback much anticipated.
    
    
    One of the quasi-nasty details of this feature, is the need to work
    against the lock-order in cache_hash.c, see details in comments for
    HSH_FindBan().
    
    
    
    
    git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4206 d4fa192b-c00b-0410-8231-f00ffab90ce4
    833f5680
Name
Last commit
Last update
..
Makefile.am Loading commit data...
flint.lnt Loading commit data...
flint.sh Loading commit data...
vcc_acl.c Loading commit data...
vcc_action.c Loading commit data...
vcc_backend.c Loading commit data...
vcc_compile.c Loading commit data...
vcc_compile.h Loading commit data...
vcc_dir_random.c Loading commit data...
vcc_dir_round_robin.c Loading commit data...
vcc_fixed_token.c Loading commit data...
vcc_gen_fixed_token.tcl Loading commit data...
vcc_obj.c Loading commit data...
vcc_parse.c Loading commit data...
vcc_priv.h Loading commit data...
vcc_string.c Loading commit data...
vcc_token.c Loading commit data...
vcc_token_defs.h Loading commit data...
vcc_var.c Loading commit data...
vcc_xref.c Loading commit data...