mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-09-01 00:00:35 -04:00
proxy: allow to recover from IO errors on proxy connection, so that the next one can come along
This commit is contained in:
parent
8dfbca8fd1
commit
8b5eb7c477
@ -71,7 +71,7 @@ module HTTPX
|
||||
response = super
|
||||
if response.is_a?(ErrorResponse) &&
|
||||
# either it was a timeout error connecting, or it was a proxy error
|
||||
((response.error.is_a?(TimeoutError) && request.state == :idle) ||
|
||||
(((response.error.is_a?(TimeoutError) || response.error.is_a?(IOError)) && request.state == :idle) ||
|
||||
response.error.is_a?(Error)) &&
|
||||
!@_proxy_uris.empty?
|
||||
log { "failed connecting to proxy, trying next..." }
|
||||
|
Loading…
x
Reference in New Issue
Block a user