Skip to content

Commit

Permalink
Record sent bytes for when we do flowcontrol
Browse files Browse the repository at this point in the history
  • Loading branch information
niloc132 committed Jan 10, 2022
1 parent e72b839 commit 3b66dc1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ public void writeFrame(@Nullable WritableBuffer frame, boolean flush, int numMes
ByteBuffer.wrap(((ByteArrayWritableBuffer) frame).bytes, 0, frame.readableBytes());

websocketSession.getBasicRemote().sendBinary(payload);
transportState.runOnTransportThread(() -> transportState.onSentBytes(numBytes));
}

} catch (IOException e) {
Expand Down

0 comments on commit 3b66dc1

Please sign in to comment.