Skip to content

Commit

Permalink
HTTPCORE-762: H2 protocol handler incorrectly determines the maximum …
Browse files Browse the repository at this point in the history
…frame size for outgoing frames in case the remote endpoint negotiated a max frame size larger than the protocol default
  • Loading branch information
ok2c committed Nov 22, 2023
1 parent 0d4aeb5 commit faaa82f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ private int streamData(
if (capacity <= 0) {
return 0;
}
final int maxPayloadSize = Math.min(capacity, remoteConfig.getMaxFrameSize());
final int maxPayloadSize = Math.min(capacity, outputBuffer.getMaxFramePayloadSize());
final int chunk;
if (payload.remaining() <= maxPayloadSize) {
chunk = payload.remaining();
Expand Down

0 comments on commit faaa82f

Please sign in to comment.