lib/httpx/connection.rb in httpx-0.21.0 vs lib/httpx/connection.rb in httpx-0.21.1

- old
+ new

@@ -510,12 +510,17 @@ end end def transition(nextstate) handle_transition(nextstate) - rescue Errno::ECONNREFUSED, + rescue Errno::ECONNABORTED, + Errno::ECONNREFUSED, + Errno::ECONNRESET, Errno::EADDRNOTAVAIL, Errno::EHOSTUNREACH, + Errno::EINVAL, + Errno::ENETUNREACH, + Errno::EPIPE, TLSError => e # connect errors, exit gracefully handle_error(e) @state = :closed emit(:close)