• antirez's avatar
    Check for EAGAIN in sendBulkToSlave(). · 970de3e9
    antirez authored
    Sometime an osx master with a Linux server over a slow link caused
    a strange error where osx called the writable function for
    the socket but actually apparently there was no room in the socket
    buffer to accept the write: write(2) call returned an EAGAIN error,
    that was not checked, so we considered write(2) == 0 always as a connection
    reset, which was unfortunate since the bulk transfer has to start again.
    
    Also more errors are logged with the WARNING level in the same code path
    now.
    970de3e9
replication.c 71.2 KB