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

Websocket transport stop working after some time #3602

Closed
1 task done
Novivy opened this issue May 22, 2020 · 3 comments
Closed
1 task done

Websocket transport stop working after some time #3602

Novivy opened this issue May 22, 2020 · 3 comments

Comments

@Novivy
Copy link

Novivy commented May 22, 2020

You want to:

  • report a bug

Current behaviour

After running socket io on a nodejs for a while (from a few hours to a few days), the server just stop serving the websocket transport and only XHR still works as a valid transport.

Steps to reproduce (if the current behaviour is a bug)

That's the problem, i can't reproduce it myself, it happens after a while running. No errors is thrown from the server or on the client, the client just try to connect every few seconds but nothing happens.

You can test it out yourself on my website, i created a version of the client with only "websocket" as the used transport and the bug is currently on :

Link removed

Open the network tab and check under WS.

If i restart the server everything works fine with this transport again until a few hours/days pass.

Nothing in the logs and i have this issue since 2 years now (since socket io ^2.2.0 at least).

Also, i tried to limit the transport to "websocket" on the server side but it just blocked all my clients when the bug came live again after a few days

Expected behaviour

Websocket transport still working after running for a while

Setup

  • OS: Debian 9
  • browser: Chrome
  • socket.io version: "socket.io": last

Other information (e.g. stacktraces, related issues, suggestions how to fix)

Related issue : 3461

@Novivy Novivy closed this as completed May 29, 2020
@roy2651
Copy link

roy2651 commented Jul 7, 2020

Hello is this issues solved?

@Novivy
Copy link
Author

Novivy commented Jul 7, 2020

it is since i updated socket io.

@darrachequesne
Copy link
Member

Without a proper way to reproduce, that will indeed be hard to debug the issue... Let's continue this discussion in #3461

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

No branches or pull requests

3 participants