lib/ezclient/request.rb in ezclient-0.15.1 vs lib/ezclient/request.rb in ezclient-0.15.2
- old
+ new
@@ -114,10 +114,11 @@
def retry_on_connection_error
# This may result in 2 requests reaching the server so I hope HTTP fixes it
# https://github.com/httprb/http/issues/459
yield
- rescue HTTP::ConnectionError => error
+ rescue HTTP::ConnectionError, IOError, SocketError, SystemCallError => error
+ # TODO: remove IOError, SocketError, SystemCallError after we drop HTTP v3 support
on_retry.call(self, error, options[:metadata])
yield
end
def timeout