mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-07-06 00:00:40 -04:00
Compare commits
No commits in common. "880583ab825f0c0415ea9efb23d5ffe944ae7e83" and "aa825021a896fae6a3c01637fb7ded6af6999835" have entirely different histories.
880583ab82
...
aa825021a8
@ -512,14 +512,9 @@ module HTTPX
|
||||
|
||||
def transition(nextstate)
|
||||
handle_transition(nextstate)
|
||||
rescue Errno::ECONNABORTED,
|
||||
Errno::ECONNREFUSED,
|
||||
Errno::ECONNRESET,
|
||||
rescue Errno::ECONNREFUSED,
|
||||
Errno::EADDRNOTAVAIL,
|
||||
Errno::EHOSTUNREACH,
|
||||
Errno::EINVAL,
|
||||
Errno::ENETUNREACH,
|
||||
Errno::EPIPE,
|
||||
TLSError => e
|
||||
# connect errors, exit gracefully
|
||||
handle_error(e)
|
||||
|
@ -28,7 +28,7 @@ module HTTPX
|
||||
nil
|
||||
when :half_open
|
||||
# return nothing or smth based on ratio
|
||||
return if Random.rand >= @circuit_breaker_half_open_drip_rate
|
||||
return if Random::DEFAULT.rand >= @circuit_breaker_half_open_drip_rate
|
||||
|
||||
@response
|
||||
when :open
|
||||
|
Loading…
x
Reference in New Issue
Block a user