• antirez's avatar
    redis-cli: use keepalive socket option. · df3b4920
    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.
    df3b4920
redis-cli.c 42.7 KB