]> git.saurik.com Git - redis.git/blobdiff - client-libraries/ruby_2/rubyredis.rb
Redis git version modified to 0.101 in order to distinguish that from the latest...
[redis.git] / client-libraries / ruby_2 / rubyredis.rb
index e668fcd5d879acb0038ab10d4d388450f749d0fb..ca73d817d91fca08ef4fc6bcb3a6b64feaf1e587 100644 (file)
@@ -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