mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-08-10 00:01:27 -04:00
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:
parent
6e0df603db
commit
b2dff40839
@ -117,6 +117,7 @@ class HTTPX::Selector
|
||||
yield io
|
||||
rescue IOError, SystemCallError
|
||||
@selectables.reject!(&:closed?)
|
||||
raise unless @selectables.empty?
|
||||
end
|
||||
|
||||
def select(interval, &block)
|
||||
|
Loading…
x
Reference in New Issue
Block a user