total timeout call should bubble up exception, not timeout value

This commit is contained in:
HoneyryderChuck 2021-11-19 23:03:08 +00:00
parent 589e47e98b
commit ab70f6a586

View File

@ -242,7 +242,7 @@ module HTTPX
if elapsed_time.negative?
ex = TotalTimeoutError.new(@total_timeout, "Timed out after #{@total_timeout} seconds")
ex.set_backtrace(caller)
on_error(@total_timeout)
on_error(ex)
return
end