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

fix(eio/upgrade): 25s upgrade latency due to multiple polling req while upgrading #487

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

Conversation

Totodore
Copy link
Owner

Motivation

As reported in #479, the socket.io client might send multiple HTTP polling requests while upgrading. Socketioxide is sending exactly one NOOP packet to the first polling request and then do not expect more polling requests. When this is happening (probably because of some state desynchronisation on the client side). The client is waiting for the end of the second polling request which is caused by the ping request packet only after the ping interval (25s by default).

Solution

Socketioxide is now sending a NOOP packet to any number of incoming polling request if the socket is currently being upgraded.

@Totodore Totodore added C-Bug Something isn't working A-engineioxide Area related to engineioxide P-High High priority labels Mar 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-engineioxide Area related to engineioxide C-Bug Something isn't working P-High High priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant