Skip to content

Conversation

peymor19
Copy link

When a browser client loses its web socket connection to the server, I noticed that it immediately falls back to long poll without respecting the longPollFallbackMs delay.

This causes all connected browser clients to fall back to long poll when restarting an Elixir server, instead of attempting to reconnect to a new web socket as expected.

I have added a failing test and a potential fix.

I am not sure that the implementation of the fix is the best so I would appreciate some insight on the issue before diving deeper into a better solution.

In this image you can see that I set the longPollFallbackMs to 5500 ms
image

This image shows the client immediately falling back to long poll instead of waiting the 5500ms for a web socket connection.
image

Thanks for your consideration!

@matheus1lva
Copy link

Im seing exactly the same thing, in my case even some next requests are being aborted because of that!

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.

2 participants