Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use an exponential backoff when deciding how long we need to wait for reconnects #2892

Merged
merged 5 commits into from
Jun 20, 2021

Conversation

pajlada
Copy link
Member

@pajlada pajlada commented Jun 13, 2021

Pull request checklist:

  • CHANGELOG.md was updated, if applicable

Description

Instead of always waiting ~15 seconds for a reconnect, we now follow the guidelines from https://dev.twitch.tv/docs/irc/guide#re-connecting-to-twitch-irc and increase our reconnect delays exponentially.
Our reconnect delay starts at 1 second and caps out at 16 seconds.

Closes #2869

@pajlada pajlada mentioned this pull request Jun 13, 2021
@pajlada pajlada force-pushed the fix/reconnect-delay branch from 2e70ae4 to 5c39c4d Compare June 13, 2021 15:11
@pajlada pajlada requested a review from zneix June 13, 2021 15:27
Co-authored-by: Leon Richardt <leon.richardt@gmail.com>
@pajlada pajlada changed the title Use an exponential backoff when deciding how long we need to wait for timeouts Use an exponential backoff when deciding how long we need to wait for reconnects Jun 17, 2021
@pajlada pajlada enabled auto-merge (squash) June 20, 2021 11:13
@pajlada pajlada merged commit 0c24885 into master Jun 20, 2021
@pajlada pajlada deleted the fix/reconnect-delay branch June 20, 2021 13:29
zneix added a commit to SevenTV/chatterino7 that referenced this pull request Jun 25, 2021
Now we're on commit 0021290; Changes from upstream we pulled:

- Bugfix: Fix reconnecting when IRC write connection is lost (Chatterino#1831, Chatterino#2356, Chatterino#2850, Chatterino#2892)
- Bugfix: Fixed subscription emotes showing up incorrectly in the emote menu. (Chatterino#2905)

Changes added in Chatterino7 only:

- Major: Added 7tv badges. (2154981)
- Minor: Fixed potential issues preventing 7tv emotes from loading (c0b1117)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

disconnected at startup
4 participants