• Martin Blix Grydeland's avatar
    Stop accept() timeouts from being counted as sess_fail in varnishstat · b499af9c
    Martin Blix Grydeland authored
    Varnish sets SO_RCVTIMEO to cache_param->timeout_idle on the listen
    sockets, so that the value is inherited to the accept()ed
    connections. This has the side effect of making accept() returning
    with EAGAIN after cache_param->timeout_idle seconds when there are no
    connections coming in, and each of these timeouts is counted as a
    sess_failed. Also the pacing sleep time is increased for each of these
    timeouts, causing Varnish to react slowly at first when connections
    start coming in.
    
    Patch changes to loop around the call to accept() while EAGAIN
    b499af9c
cache_acceptor.c 10.1 KB