forked from quic-go/quic-go
set the offset in BLOCKED and STREAM_BLOCKED frames
This commit is contained in:
@@ -25,7 +25,7 @@ type streamI interface {
|
||||
// methods needed for flow control
|
||||
GetWindowUpdate() protocol.ByteCount
|
||||
HandleMaxStreamDataFrame(*wire.MaxStreamDataFrame)
|
||||
IsFlowControlBlocked() bool
|
||||
IsFlowControlBlocked() (bool, protocol.ByteCount)
|
||||
}
|
||||
|
||||
// A Stream assembles the data from StreamFrames and provides a super-convenient Read-Interface
|
||||
@@ -484,7 +484,7 @@ func (s *stream) HandleMaxStreamDataFrame(frame *wire.MaxStreamDataFrame) {
|
||||
s.flowController.UpdateSendWindow(frame.ByteOffset)
|
||||
}
|
||||
|
||||
func (s *stream) IsFlowControlBlocked() bool {
|
||||
func (s *stream) IsFlowControlBlocked() (bool, protocol.ByteCount) {
|
||||
return s.flowController.IsBlocked()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user