Skip to content

Commit c90069c

Browse files
Jacopo Beschiintrip
authored andcommitted
Retry on Errno::ECONNRESET
1 parent e53de92 commit c90069c

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/fcm.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def rescue_and_reraise_network_errors
6464
yield
6565
rescue Net::ReadTimeout, Net::OpenTimeout => e
6666
raise ActionNativePush::Errors::TimeoutError, e.message
67-
rescue SocketError => e
67+
rescue Errno::ECONNRESET, SocketError => e
6868
raise ActionNativePush::Errors::ConnectionError, e.message
6969
rescue OpenSSL::SSL::SSLError => e
7070
if e.message.include?("SSL_connect")

0 commit comments

Comments
 (0)