Project

General

Profile

Feature #14268 ยป 0001-net-protocol-optimize-large-read-case.patch

normalperson (Eric Wong), 01/02/2018 08:53 AM

View differences:

lib/net/protocol.rb
end
def rbuf_consume(len)
s = @rbuf.slice!(0, len)
if len == @rbuf.size
s = @rbuf
@rbuf = ''.dup
else
s = @rbuf.slice!(0, len)
end
@debug_output << %Q[-> #{s.dump}\n] if @debug_output
s
end
-
    (1-1/1)