• A
    Net: improve prepareClientToWrite() error handling and comments. · 6c60526d
    antirez 提交于
    When we fail to setup the write handler it does not make sense to take
    the client around, it is missing writes: whatever is a client or a slave
    anyway the connection should terminated ASAP.
    
    Moreover what the function does exactly with its return value, and in
    which case the write handler is installed on the socket, was not clear,
    so the functions comment are improved to make the goals of the function
    more obvious.
    
    Also related to #2485.
    6c60526d
networking.c 61.6 KB