# File lib/redis/connection/ruby.rb, line 61 def read # We read the first byte using read() mainly because gets() is # immune to raw socket timeouts. reply_type = @sock.read(1) raise Errno::ECONNRESET unless reply_type format_reply(reply_type, @sock.gets) end