Skip to content

Commit

Permalink
Handle ssl_closed message in emote watcher (#1677)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jutonz committed May 28, 2021
1 parent 6e50600 commit 50137d8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/twitch/lib/twitch/emote_watcher.ex
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ defmodule Twitch.EmoteWatcher do
{:noreply, new_state}
end

def handle_info({:ssl_closed, _}, state) do
# https://sentry.io/share/issue/207a371da909426aadf6658651b0ebc9/
# https://github.com/benoitc/hackney/pull/640
{:noreply, state}
end

def schedule_decrement(bucket, emote, amount, after_ms) do
Process.send_after(
self(),
Expand Down

0 comments on commit 50137d8

Please sign in to comment.