Created
December 12, 2024 16:02
-
-
Save Akkiesoft/22c07b61511d74165080b7ead99d084b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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