• Poul-Henning Kamp's avatar
    Add an optional shortcut: · de2fd54b
    Poul-Henning Kamp authored
    The parameter session_linger determines how many milliseconds the
    workerthread waits to see if another request has arrived, before
    handing the session over to the session herder.
    
    If we manage to catch the next request this way, we save a number
    of semi-expensive steps, if we hang around too long, the worker-thread
    gets to goof off.
    
    A relatively small sample of data from a live server, indicates
    that 20% of all requests arrive within 50 msec of the previous
    request and 50% within 100msec.
    
    It is not clear at present how these timeintervals relate to client
    RTT, or if they are systematically too high, due to the duration
    of the detour over the herder.
    
    There is a new line in varnishstat keeping track of how many times
    this gamble succeeds.
    
    Experimentation is encouraged.
    
    
    
    
    git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2663 d4fa192b-c00b-0410-8231-f00ffab90ce4
    de2fd54b
Name
Last commit
Last update
bin Loading commit data...
doc Loading commit data...
etc Loading commit data...
include Loading commit data...
lib Loading commit data...
man Loading commit data...
redhat Loading commit data...
ChangeLog Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
Makefile.am Loading commit data...
README Loading commit data...
autogen.des Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
varnishapi.pc.in Loading commit data...