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

Javalin Server closes WebSocket after 5 minutes idle #13

Closed
Firionus opened this issue Dec 6, 2020 · 2 comments
Closed

Javalin Server closes WebSocket after 5 minutes idle #13

Firionus opened this issue Dec 6, 2020 · 2 comments

Comments

@Firionus
Copy link
Contributor

Firionus commented Dec 6, 2020

To reproduce, start CueGlow Web-UI and open console. WebSocket will reconnect every 5 minutes with connection error popup always flashing up (on feature/patch-ui branch). This is standard behaviour for Javalin (javalin/javalin#119 (comment)).

To adjust, please see javalin/javalin#72 and https://javalin.io/news/2019/03/02/javalin-2.7.0-released.html and https://stackoverflow.com/questions/44882256/jetty-websocket-idletimeout.

@Firionus
Copy link
Contributor Author

Firionus commented Dec 6, 2020

Another option of course is to introduce keep-alive messages that get sent by the client.

Additional curious behaviour: The browser reconnects every 5 minutes, but the Cypress Instance reconnects every 2 minutes.

@Firionus
Copy link
Contributor Author

discussion and solution moved to #17

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

1 participant