X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/0b420168b485d0a9c4b66d0a6c341597fb155947..edd9f775f0b51f031a04c7fc7573b276d152a74f:/client-libraries/ruby_2/rubyredis.rb diff --git a/client-libraries/ruby_2/rubyredis.rb b/client-libraries/ruby_2/rubyredis.rb index e668fcd5..ca73d817 100644 --- a/client-libraries/ruby_2/rubyredis.rb +++ b/client-libraries/ruby_2/rubyredis.rb @@ -116,6 +116,7 @@ class RedisClient else sock = TCPSocket.new(host, port, 0) end + sock.setsockopt Socket::IPPROTO_TCP, Socket::TCP_NODELAY, 1 # If the timeout is set we set the low level socket options in order # to make sure a blocking read will return after the specified number