• Poul-Henning Kamp's avatar
    Be more consistent about sockets and blocking/non-blocking mode: · 9aff164d
    Poul-Henning Kamp authored
    Accept sockets are non-blocking, to avoid races where the client closes
    before we get to accept it.  (Spotted by: "chen xiaoyong")
    
    Unfortunately, that means that session sockets inherit non-blocking mode,
    which is the opposite of what we want in the worker thread but correct
    for the acceptor thread.
    
    We prefer to have the extra syscalls in the worker thread, that complicates
    things a little bit.
    
    Use ioctl(FIONBIO) instead of fcntl(2) which is surprisingly expensive.
    
    
    git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2639 d4fa192b-c00b-0410-8231-f00ffab90ce4
    9aff164d
Name
Last commit
Last update
..
varnishadm Loading commit data...
varnishd Loading commit data...
varnishhist Loading commit data...
varnishlog Loading commit data...
varnishncsa Loading commit data...
varnishreplay Loading commit data...
varnishstat Loading commit data...
varnishtop Loading commit data...
Makefile.am Loading commit data...