rename the STREAM_BLOCKED frame to STREAM_DATA_BLOCKED

This commit is contained in:
Marten Seemann 2018-10-31 09:16:23 +07:00
parent 387613aa20
commit 05ecf9bc02
9 changed files with 74 additions and 74 deletions

View file

@ -169,9 +169,9 @@ func (s *sendStream) popStreamFrameImpl(maxBytes protocol.ByteCount) (bool /* co
return false, nil, false
}
if isBlocked, offset := s.flowController.IsNewlyBlocked(); isBlocked {
s.sender.queueControlFrame(&wire.StreamBlockedFrame{
StreamID: s.streamID,
Offset: offset,
s.sender.queueControlFrame(&wire.StreamDataBlockedFrame{
StreamID: s.streamID,
DataLimit: offset,
})
return false, nil, false
}