Skip to content

Commit

Permalink
Merge pull request #4953 from lorban/jetty-9.4.x-4855-h2spec-8-1-2-6-…
Browse files Browse the repository at this point in the history
…failure

Fix h2spec 8.1.2.6 test failure
  • Loading branch information
sbordet authored Jun 9, 2020
2 parents 56bda1b + 714a920 commit 1d16310
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ private void onData(DataFrame frame, Callback callback)
if (dataLength != Long.MIN_VALUE)
{
dataLength -= frame.remaining();
if (frame.isEndStream() && dataLength != 0)
if (dataLength < 0 || (frame.isEndStream() && dataLength != 0))
{
reset(new ResetFrame(streamId, ErrorCode.PROTOCOL_ERROR.code), Callback.NOOP);
callback.failed(new IOException("invalid_data_length"));
Expand Down

0 comments on commit 1d16310

Please sign in to comment.