forked from quic-go/quic-go
only retransmit WindowUpdates if no higher WindowUpdate has been sent
fixes #394
This commit is contained in:
@@ -23,6 +23,7 @@ type mockFlowControlHandler struct {
|
||||
bytesRead protocol.ByteCount
|
||||
bytesSent protocol.ByteCount
|
||||
|
||||
receiveWindow protocol.ByteCount
|
||||
highestReceivedForStream protocol.StreamID
|
||||
highestReceived protocol.ByteCount
|
||||
flowControlViolation error
|
||||
@@ -57,6 +58,10 @@ func (m *mockFlowControlHandler) GetWindowUpdates() (res []flowcontrol.WindowUpd
|
||||
return res
|
||||
}
|
||||
|
||||
func (m *mockFlowControlHandler) GetReceiveWindow(protocol.StreamID) (protocol.ByteCount, error) {
|
||||
return m.receiveWindow, nil
|
||||
}
|
||||
|
||||
func (m *mockFlowControlHandler) AddBytesRead(streamID protocol.StreamID, n protocol.ByteCount) error {
|
||||
m.bytesReadForStream = streamID
|
||||
m.bytesRead = n
|
||||
|
||||
Reference in New Issue
Block a user