Skip to content

Commit

Permalink
Fix Connection::Ruby to use @write_timeout for write operations
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Sep 27, 2020
1 parent 9e389de commit 087a11b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/redis/connection/ruby.rb
Expand Up @@ -72,11 +72,11 @@ def _write_to_socket(data)
loop do
case bytes_written = write_nonblock(data, exception: false)
when :wait_readable
unless IO.select([self], nil, nil, @timeout)
unless IO.select([self], nil, nil, @write_timeout)
raise Redis::TimeoutError
end
when :wait_writable
unless IO.select(nil, [self], nil, @timeout)
unless IO.select(nil, [self], nil, @write_timeout)
raise Redis::TimeoutError
end
when nil
Expand Down

0 comments on commit 087a11b

Please sign in to comment.