move the max flow control increments out of the params negotiator

The params negotiator was just keeping track of the value set in the
quic.Config. The max flow control increments are not subject to
negotiation, but an independent implementation decision of every peer.
This commit is contained in:
Marten Seemann 2017-10-04 07:11:48 -07:00
parent c54bd857c0
commit 0e1a8a5f8c
12 changed files with 55 additions and 113 deletions

View file

@ -18,9 +18,7 @@ var _ = Describe("Flow Control Manager", func() {
mockPn := mocks.NewMockParamsNegotiator(mockCtrl)
mockPn.EXPECT().GetReceiveStreamFlowControlWindow().AnyTimes().Return(protocol.ByteCount(100))
mockPn.EXPECT().GetReceiveConnectionFlowControlWindow().AnyTimes().Return(protocol.ByteCount(200))
mockPn.EXPECT().GetMaxReceiveStreamFlowControlWindow().AnyTimes().Return(protocol.MaxByteCount)
mockPn.EXPECT().GetMaxReceiveConnectionFlowControlWindow().AnyTimes().Return(protocol.MaxByteCount)
fcm = NewFlowControlManager(mockPn, &congestion.RTTStats{}).(*flowControlManager)
fcm = NewFlowControlManager(mockPn, protocol.MaxByteCount, protocol.MaxByteCount, &congestion.RTTStats{}).(*flowControlManager)
})
It("creates a connection level flow controller", func() {