Skip to content

Commit 50137d8

Browse files
authored
Handle ssl_closed message in emote watcher (#1677)
We're seeing a whole bunch of [errors] in sentry related to an unhandled `{:ssl_closed, _info}` message. This was apparently [fixed] by a Hackney patch, but we're on latest and still experiencing the issue, so I guess not! [errors]: https://sentry.io/share/issue/207a371da909426aadf6658651b0ebc9/ [fixed]: benoitc/hackney#640
1 parent 6e50600 commit 50137d8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

apps/twitch/lib/twitch/emote_watcher.ex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,12 @@ defmodule Twitch.EmoteWatcher do
109109
{:noreply, new_state}
110110
end
111111

112+
def handle_info({:ssl_closed, _}, state) do
113+
# https://sentry.io/share/issue/207a371da909426aadf6658651b0ebc9/
114+
# https://github.com/benoitc/hackney/pull/640
115+
{:noreply, state}
116+
end
117+
112118
def schedule_decrement(bucket, emote, amount, after_ms) do
113119
Process.send_after(
114120
self(),

0 commit comments

Comments
 (0)