Skip to content

Commit

Permalink
move to TCP_NODELAY option with libmemcached, fixes issue 48
Browse files Browse the repository at this point in the history
  • Loading branch information
Aliaksey Kandratsenka authored and ingenthr committed Aug 13, 2009
1 parent 6594db4 commit c695623
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions agent_ping.c
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions cproxy.c
Expand Up @@ -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;

Expand Down

0 comments on commit c695623

Please sign in to comment.