• antirez's avatar
    redis-cli: use keepalive socket option. · 3b397441
    antirez authored
    This should improve things in two ways:
    
    1) Prevent timeouts caused by the execution of long commands.
    2) Improve detection of real connection errors.
    
    This is mostly effective only on Linux because of the bogus default
    keepalive settings. In Linux we have OS-specific calls to set the
    keepalive interval to reasonable values.
    3b397441
redis-cli.c 42.7 KB