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

ConnectionManager.ping(): rewrite to fix pings stacking if none ever succeed #1793

Merged
merged 1 commit into from
Jun 21, 2024

Conversation

SimonWoolf
Copy link
Member

previously if the transport keeps becoming active but then gets disconnected before the ping succeeds, listeners would just keep stacking up

the whole previous implementation was just way over-complex now we no longer do transport upgrade. rewrote from scratch with a much simpler promise-based one.

…succeed

previously if the transport keeps becoming active but then gets
disconnected before the ping succeeds, listeners would just keep
stacking up

the whole previous implementation is way over-complex now we no longer
do transport upgrades. replaced with a much simpler one.
@SimonWoolf
Copy link
Member Author

(this seems to have failed the linter github action because of a npm audit failure (not added by this pr, which did not change dependencies). I venture that this is not something that an action called "lint" should be checking; that's what dependabot is for)

Copy link
Collaborator

@ttypic ttypic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@owenpearson owenpearson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

w.r.t npm audit --production in CI, we opted for this a while ago because it helps us to be aware of vulnerabilities in prod deps faster (which seems to still work - we found out about it here before anyone saw the dependabot alert). The intended solution is for someone to fix it in the main branch and then rebase this PR, but I think it's fine to merge this PR with admin rights anyway as long as everything else is passing.

@SimonWoolf SimonWoolf merged commit 5de39d2 into main Jun 21, 2024
10 of 12 checks passed
@SimonWoolf SimonWoolf deleted the ping branch June 21, 2024 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants