Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Akkiesoft/22c07b61511d74165080b7ead99d084b to your computer and use it in GitHub Desktop.
Save Akkiesoft/22c07b61511d74165080b7ead99d084b to your computer and use it in GitHub Desktop.
diff --git a/plugin/mastodon_sse_streaming/raw_server_sent_events_stream.rb b/plugin/mastodon_sse_streaming/raw_server_sent_events_stream.rb
index 2797779b..a4cf17df 100644
--- a/plugin/mastodon_sse_streaming/raw_server_sent_events_stream.rb
+++ b/plugin/mastodon_sse_streaming/raw_server_sent_events_stream.rb
@@ -41,6 +41,9 @@ module Plugin::MastodonSseStreaming
end
end
rescue SocketError,
+ Errno::ENETDOWN,
+ Errno::ECONNREFUSED,
+ Errno::EHOSTUNREACH,
HTTPClient::BadResponseError,
HTTPClient::TimeoutError => exception
raise ConnectionRefusedError, exception.to_s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment