mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-08-10 00:01:27 -04:00
total timeout call should bubble up exception, not timeout value
This commit is contained in:
parent
589e47e98b
commit
ab70f6a586
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user