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

@ -58,7 +58,7 @@ redisClient *createClient(int fd) {
* contexts (for instance a Lua script) we need a non connected client. */
if (fd != -1) {
anetNonBlock(NULL,fd);
anetTcpNoDelay(NULL,fd);
anetEnableTcpNoDelay(NULL,fd);
if (aeCreateFileEvent(server.el,fd,AE_READABLE,
readQueryFromClient, c) == AE_ERR)
{