mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-08-13 00:02:57 -04:00
fixing initializationn of connect timeout, which needs the failed timeout value
This commit is contained in:
parent
981824bf47
commit
bfe77fe92c
@ -69,7 +69,7 @@ module HTTPX
|
||||
@ip_index -= 1
|
||||
retry
|
||||
rescue Errno::ETIMEDOUT => e
|
||||
raise ConnectTimeoutError, e.message if @ip_index <= 0
|
||||
raise ConnectTimeoutError.new(@options.timeout.connect_timeout, e.message) if @ip_index <= 0
|
||||
|
||||
@ip_index -= 1
|
||||
retry
|
||||
|
Loading…
x
Reference in New Issue
Block a user