Skip to content

Commit 1fde875

Browse files
committed
relax data frame error to stream level
1 parent 28ca2e8 commit 1fde875

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/src/Http2Transport.cc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,10 +1433,9 @@ void Http2Transport::handleFrameForStream(const internal::H2Frame &frame,
14331433

14341434
if (stream.state != StreamState::ExpectingData)
14351435
{
1436-
// XXX: Maybe this could be a RST_STREAM instead?
1437-
connectionErrored(streamId,
1438-
StreamCloseErrorCode::ProtocolError,
1439-
"Unexpected data frame");
1436+
streamErrored(streamId,
1437+
StreamCloseErrorCode::ProtocolError,
1438+
ReqResult::BadResponse);
14401439
return;
14411440
}
14421441
availableRxWindow -= size;

0 commit comments

Comments
 (0)