Skip to content

Commit cbcb700

Browse files
committed
Stop mutating the string received in SocketMixin#write
Ref: #962 Ref: #961
1 parent d896ae2 commit cbcb700

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/redis/connection/ruby.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ def _write_to_socket(data)
9595
def write(data)
9696
return super(data) unless @write_timeout
9797

98+
data = data.b
9899
length = data.bytesize
99100
total_count = 0
100101
loop do

0 commit comments

Comments
 (0)