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

Clarify if sessions are resumable for each gateway close code #7172

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Zoddo
Copy link
Contributor

@Zoddo Zoddo commented Sep 24, 2024

This PR (which was made after this DDevs thread) attempts to clarify which gateway close codes are potentially resumable, and which ones are not worth trying to resume.

The idea is that libs can immediately reset the shard's session state upon encountering a non-resumable close code, saving a useless connection to the gateway_resume_url.

The information on whether a close code is resumable or not is based solely on my own testing (except for 4001, which has been confirmed to never be resumable by @mrkirby153 in the aforementioned thread).

@Zoddo Zoddo requested a review from a team as a code owner September 24, 2024 19:46
@Zoddo Zoddo requested review from colinloretz and removed request for a team September 24, 2024 19:46
@Zoddo
Copy link
Contributor Author

Zoddo commented Sep 24, 2024

I'm not sure why the CI fails on the table formatting, everything is correctly aligned when pasting it in an editor with a fixed-width font.

@valdotle
Copy link
Contributor

I'm not sure why the CI fails on the table formatting, everything is correctly aligned when pasting it in an editor with a fixed-width font.

I think you have a double space at the end of the second row from the right

@mrkirby153
Copy link
Member

I think it makes more sense to have the table split into two columns: reconnect and resume.

So it'd look something like

Close Code Reconnect Resume
1234 true false
5678 false false

@Zoddo
Copy link
Contributor Author

Zoddo commented Sep 25, 2024

Yeah, I hesitated, but a single Action column looked more readable.

I'm updating the PR to use 2 columns.

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.

3 participants