Skip to content

Commit

Permalink
Stop mutating the string received in SocketMixin#write
Browse files Browse the repository at this point in the history
Ref: #962
Ref: #961
  • Loading branch information
byroot committed Nov 19, 2020
1 parent d896ae2 commit cbcb700
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/redis/connection/ruby.rb
Expand Up @@ -95,6 +95,7 @@ def _write_to_socket(data)
def write(data)
return super(data) unless @write_timeout

data = data.b
length = data.bytesize
total_count = 0
loop do
Expand Down

0 comments on commit cbcb700

Please sign in to comment.