We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d2763f2 + 8c9c4bc commit c7b69baCopy full SHA for c7b69ba
lib/redis/connection/ruby.rb
@@ -53,7 +53,7 @@ def gets
53
crlf = nil
54
55
while (crlf = @buffer.index(CRLF)) == nil
56
- @buffer << _read_from_socket(1024)
+ @buffer << _read_from_socket(16384)
57
end
58
59
@buffer.slice!(0, crlf + CRLF.bytesize)
@@ -354,8 +354,8 @@ def get_tcp_keepalive
354
355
# disables Nagle's Algorithm, prevents multiple round trips with MULTI
356
if [:IPPROTO_TCP, :TCP_NODELAY].all?{|c| Socket.const_defined? c}
357
- def set_tcp_nodelay
358
- @sock.setsockopt(Socket::IPPROTO_TCP, Socket::TCP_NODELAY, 1)
+ def set_tcp_nodelay
+ @sock.setsockopt(Socket::IPPROTO_TCP, Socket::TCP_NODELAY, 1)
359
360
else
361
def set_tcp_nodelay
0 commit comments