Skip to content

Websocket client object still available and 'OPEN' after remote connection killed. #886

@evoisard

Description

@evoisard

If a connect with a remote client (well, 127.0.0.1) to my websocket server and then I kill the remote client, the loss of connection isn't detected, my WebSocket client objet is still valid (e.g. getClient() not null) and in the OPEN state (isOpen() is true).

If I then do for example : ws.getClient().getRemoteSocketAddress() I get a NullPointerException.

With Wireshark, we can see that a TCP RST was sent to the server, which should have been handled.

I'd have expected the WebSocketServer to detect the TCP abort, an onError() or onClose() event to occur and isOpen() to report false.

  • Version used: 1.4.0
  • Java version: jdk-11.0.2
  • Operating System and version: Windows 10

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions