mirror of
https://github.com/fluencelabs/redis
synced 2025-06-14 01:31:21 +00:00
rio fdset target: handle short writes.
While the socket is set in blocking mode, we still can get short writes writing to a socket.
This commit is contained in:
@ -882,6 +882,7 @@ void readSyncBulkPayload(aeEventLoop *el, int fd, void *privdata, int mask) {
|
||||
}
|
||||
|
||||
nread = read(fd,buf,readlen);
|
||||
printf("NREAD %d (%d)\n", (int)nread, (int)readlen);
|
||||
if (nread <= 0) {
|
||||
redisLog(REDIS_WARNING,"I/O error trying to sync with MASTER: %s",
|
||||
(nread == -1) ? strerror(errno) : "connection lost");
|
||||
|
Reference in New Issue
Block a user