• M
    Fix "can't bind to address" error reporting. · 6f4b5ef6
    Matt Stancliff 提交于
    Report the actual port used for the listening attempt instead of
    server.port.
    
    Originally, Redis would just listen on server.port.
    But, with clustering, Redis uses a Cluster Port too,
    so we can't say server.port is always where we are listening.
    
    If you tried to launch Redis with a too-high port number (any
    port where Port+10000 > 65535), Redis would refuse to start, but
    only print an error saying it can't connect to the Redis port.
    
    This patch fixes much confusions.
    6f4b5ef6
redis.c 123.1 KB