log mmore info on read for level 3

This commit is contained in:
HoneyryderChuck 2024-01-19 23:42:48 +00:00
parent 587271ff77
commit 08ba389fd6

View File

@ -337,7 +337,7 @@ module HTTPX
#
loop do
siz = @io.read(@window_size, @read_buffer)
log(level: 3, color: :cyan) { "IO READ: #{siz} bytes..." }
log(level: 3, color: :cyan) { "IO READ: #{siz} bytes... (wsize: #{@window_size}, rbuffer: #{@read_buffer.bytesize})" }
unless siz
ex = EOFError.new("descriptor closed")
ex.set_backtrace(caller)