Skip to content

Commit 6b19bfa

Browse files
committed
Don't issue a warning when receiving data on a closed stream.
1 parent 2c74b98 commit 6b19bfa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/protocol/http2/connection.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,8 @@ def receive_data(frame)
320320

321321
if stream = @streams[frame.stream_id]
322322
stream.receive_data(frame)
323+
elsif closed_stream_id?(frame.stream_id)
324+
# This can occur if one end sent a stream reset, while the other end was sending a data frame. It's mostly harmless.
323325
else
324326
raise ProtocolError, "Cannot receive data for stream id #{frame.stream_id}"
325327
end

0 commit comments

Comments
 (0)