• Poul-Henning Kamp's avatar
    First cleanup sweep over new per-pool acceptor code: · 6810e7c3
    Poul-Henning Kamp authored
    Store the data from accept(2) on the worker->ws, we only need it for
    a brief moment until the worker configures a session with it.
    
    If we fail to allocate a session after accepting the connection,
    we silently close the connection again:  Presumably it is a DoS
    situation.  (false positive:  Extremely popular busy objects)
    
    Make three clearly defined counters for sessions:  Accepted, Dropped
    and failed (accept(2) failure).
    
    Lots of spit&polish.
    6810e7c3
b00002.vtc 563 Bytes