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.
config.read_timeout
1 parent f78beb1 commit d3efeebCopy full SHA for d3efeeb
lib/redis/client.rb
@@ -78,9 +78,9 @@ def call_v(command, &block)
78
def blocking_call_v(timeout, command, &block)
79
if timeout && timeout > 0
80
# Can't use the command timeout argument as the connection timeout
81
- # otherwise it would be very racy. So we add an extra 100ms to account for
82
- # the network delay.
83
- timeout += 0.1
+ # otherwise it would be very racy. So we add the regular read_timeout on top
+ # to account for the network delay.
+ timeout += config.read_timeout
84
end
85
86
super(timeout, command, &block)
0 commit comments