fixing initializationn of connect timeout, which needs the failed timeout value

This commit is contained in:
HoneyryderChuck 2021-02-12 01:13:23 +00:00
parent 981824bf47
commit bfe77fe92c

View File

@ -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