Feature #14268 ยป 0001-net-protocol-optimize-large-read-case.patch
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
|
||
-
|