Skip to content

Commit

Permalink
#7886 WebSocket throws exception when client disconnects (#7890)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkec authored Oct 26, 2023
1 parent af4eba9 commit ccc8d68
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 ccc8d68

Please sign in to comment.