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