TCP_NODELAY after SYNC: changes to the implementation.

This commit is contained in:
antirez
2013-01-31 11:14:15 +01:00
parent c85647f354
commit b70b459b0e
9 changed files with 40 additions and 26 deletions

View File

@ -1685,7 +1685,7 @@ int migrateGetSocket(redisClient *c, robj *host, robj *port, long timeout) {
server.neterr);
return -1;
}
anetTcpNoDelay(server.neterr,fd);
anetEnableTcpNoDelay(server.neterr,fd);
/* Check if it connects within the specified timeout. */
if ((aeWait(fd,AE_WRITABLE,timeout) & AE_WRITABLE) == 0) {