reraise IOError on yield of io, when the error doesn't involve the

client io specifically.

This was the case for multipart tests raising IOErrors on upload files
instead of IO, which was causing the loop to break.
This commit is contained in:
HoneyryderChuck 2021-01-14 00:37:00 +00:00
parent 6e0df603db
commit b2dff40839

View File

@ -117,6 +117,7 @@ class HTTPX::Selector
yield io
rescue IOError, SystemCallError
@selectables.reject!(&:closed?)
raise unless @selectables.empty?
end
def select(interval, &block)