Skip to content

Commit

Permalink
helidon-io#7886 WebSocket throws exception when client disconnects
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkec committed Oct 25, 2023
1 parent 0d5cb62 commit 29cb6da
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ private ClientWsFrame readFrame() {
try {
// TODO check may payload size, danger of oom
return ClientWsFrame.read(ctx, dataReader, Integer.MAX_VALUE);
} catch (DataReader.InsufficientDataAvailableException e) {
throw new CloseConnectionException("Socket closed by the other side", e);
} catch (WsCloseException e) {
close(e.closeCode(), e.getMessage());
throw new CloseConnectionException("WebSocket failed to read client frame", e);
Expand Down

0 comments on commit 29cb6da

Please sign in to comment.