Skip to content

Commit

Permalink
retry more exception for HTTP v3
Browse files Browse the repository at this point in the history
  • Loading branch information
tycooon committed Apr 11, 2018
1 parent 7e2a91d commit 85a280e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/ezclient/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ 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
Expand Down
2 changes: 1 addition & 1 deletion lib/ezclient/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module EzClient
VERSION = "0.15.1"
VERSION = "0.15.2"
end

0 comments on commit 85a280e

Please sign in to comment.