• judeng's avatar
    fix redis-benchmark's bug: check if clients are created successfully in idle mode (#10891) · 49876158
    judeng authored
    my maxclients config:
    ```
    redis-cli config get maxclients
    1) "maxclients"
    2) "4064"
    ```
    
    Before this bug was fixed, creating 4065 clients appeared to be successful, but only 4064 were actually created```
    ```
    ./redis-benchmark -c 4065 -I
    Creating 4065 idle connections and waiting forever (Ctrl+C when done)
    cients: 4065
    ```
    
    now :
    ```
    ./redis-benchmark -c 4065 -I
    Creating 4065 idle connections and waiting forever (Ctrl+C when done)
    Error from server: ERR max number of clients reached
    
    ./redis-benchmark -c 4064 -I
    Creating 4064 idle connections and waiting forever (Ctrl+C when done)
    clients: 4064
    
    ```
    49876158
redis-benchmark.c 77.6 KB