lib/httpx/io/tcp.rb in httpx-0.13.2 vs lib/httpx/io/tcp.rb in httpx-0.14.0
- old
+ new
@@ -61,10 +61,10 @@
raise e if @ip_index <= 0
@ip_index -= 1
retry
rescue Errno::ETIMEDOUT => e
- raise ConnectTimeoutError.new(@options.timeout.connect_timeout, e.message) if @ip_index <= 0
+ raise ConnectTimeoutError.new(@options.timeout[:connect_timeout], e.message) if @ip_index <= 0
@ip_index -= 1
retry
end