Skip to content

Commit e53de92

Browse files
Jacopo Beschiintrip
authored andcommitted
Retry on Errno::EHOSTUNREACH
1 parent a5d4ef0 commit e53de92

File tree

1 file changed

+1
-1
lines changed
  • lib/action_native_push/service

1 file changed

+1
-1
lines changed

lib/action_native_push/service/apns.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def rescue_and_reraise_network_errors
6161
yield
6262
rescue Errno::ETIMEDOUT => e
6363
raise ActionNativePush::Errors::TimeoutError, e.message
64-
rescue Errno::ECONNRESET, Errno::ECONNREFUSED, SocketError => e
64+
rescue Errno::ECONNRESET, Errno::ECONNREFUSED, Errno::EHOSTUNREACH, SocketError => e
6565
raise ActionNativePush::Errors::ConnectionError, e.message
6666
rescue OpenSSL::SSL::SSLError => e
6767
if e.message.include?("SSL_connect")

0 commit comments

Comments
 (0)