• A
    Accept multiple clients per iteration. · f3d3c606
    antirez 提交于
    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.
    f3d3c606
redis.c 121.3 KB