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

TeaVM proxy drops websocket connection #939

Open
Ihromant opened this issue Aug 16, 2024 · 0 comments
Open

TeaVM proxy drops websocket connection #939

Ihromant opened this issue Aug 16, 2024 · 0 comments

Comments

@Ihromant
Copy link
Contributor

Hi I tried to perform obvious fix for websocket which is dropped after 300 seconds 287333b
But seems that it didn't help. Steps to reproduce the issue:

  1. Create simple websocket application with Jetty.
  2. Perform disabling of session drop on server side.
@OnWebSocketOpen
    public void onWebSocketConnect(Session session) {
        this.session = session; // save session
        session.setIdleTimeout(Duration.ZERO); // disable inactive session drop
    }
  1. Run jetty on localhost:8080. Launch TeaVM proxy for 9090. Open websocket http://localhost:9090/websocket session in JS. Wait 300 seconds. Session will be closed. When open same websocket on localhost:8080 it is not closed.
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