lib/rainbows/revactor/proxy.rb in rainbows-4.7.0 vs lib/rainbows/revactor/proxy.rb in rainbows-5.0.0
- old
+ new
@@ -20,10 +20,10 @@
def each
# when yield-ing, Revactor::TCP#write may raise EOFError
# (instead of Errno::EPIPE), so we need to limit the rescue
# to just readpartial and let EOFErrors during yield bubble up
begin
- buf = readpartial(INPUT_SIZE)
+ buf = readpartial(16384)
rescue EOFError
break
end while yield(buf) || true
end