(fix) enable tcp_nodelay for memcache

This commit is contained in:
Ludovic Marcotte
2017-02-20 09:54:20 -05:00
parent 12fb067f47
commit 3c2fa1c769

View File

@@ -114,7 +114,8 @@ static memcached_st *handle = NULL;
if (handle)
{
memcached_behavior_set(handle, MEMCACHED_BEHAVIOR_BINARY_PROTOCOL, 1);
memcached_behavior_set(handle, MEMCACHED_BEHAVIOR_TCP_NODELAY, 1);
sd = [SOGoSystemDefaults sharedSystemDefaults];
// We define the default value for cleaning up cached users'