Skip to content
  • Witold Kręcicki's avatar
    Redesigned TCP accepting: one listen/accept loop, passing the connected socket. · fa826e2b
    Witold Kręcicki authored and Ondřej Surý's avatar Ondřej Surý committed
    Instead of using bind() and passing the listening socket to the children
    threads using uv_export/uv_import use one thread that does the accepting,
    and then passes the connected socket using uv_export/uv_import to a random
    worker. The previous solution had thundering herd problems (all workers
    waking up on one connection and trying to accept()), this one avoids this
    and is simpler.
    The tcp clients quota is simplified with isc_quota_attach_cb - a callback
    is issued when the quota is available.
    
    (cherry picked from commit 60629e5b)
    fa826e2b