• antirez's avatar
    Accept multiple clients per iteration. · 3a3458ee
    antirez authored
    When the listening sockets readable event is fired, we have the chance
    to accept multiple clients instead of accepting a single one. This makes
    Redis more responsive when there is a mass-connect event (for example
    after the server startup), and in workloads where a connect-disconnect
    pattern is used often, so that multiple clients are waiting to be
    accepted continuously.
    
    As a side effect, this commit makes the LOADING, BUSY, and similar
    errors much faster to deliver to the client, making Redis more
    responsive when there is to return errors to inform the clients that the
    server is blocked in an not interruptible operation.
    3a3458ee
redis.c 133 KB