diff --git a/agent_ping.c b/agent_ping.c index 74c3145d..4d9b5c55 100644 --- a/agent_ping.c +++ b/agent_ping.c @@ -260,6 +260,7 @@ static void ping_server(char *server_name, if (memcached_create(&mst) != NULL) { memcached_behavior_set(&mst, MEMCACHED_BEHAVIOR_NO_BLOCK, 1); + memcached_behavior_set(&mst, MEMCACHED_BEHAVIOR_TCP_NODELAY, 1); snprintf(buf, sizeof(buf), "%s:%u", diff --git a/cproxy.c b/cproxy.c index 29694c55..1ed37d29 100644 --- a/cproxy.c +++ b/cproxy.c @@ -870,6 +870,7 @@ int init_memcached_st(memcached_st *mst, char *config) { if (memcached_create(mst) != NULL) { memcached_behavior_set(mst, MEMCACHED_BEHAVIOR_NO_BLOCK, 1); memcached_behavior_set(mst, MEMCACHED_BEHAVIOR_KETAMA, 1); + memcached_behavior_set(mst, MEMCACHED_BEHAVIOR_TCP_NODELAY, 1); memcached_server_st *mservers;