queue stream-level window updates from the flow controller directly

This commit is contained in:
Marten Seemann
2018-05-06 09:46:21 +09:00
parent b93827ca60
commit 2e8a5807ba
9 changed files with 73 additions and 77 deletions

View File

@@ -1137,6 +1137,7 @@ func (s *session) newFlowController(id protocol.StreamID) flowcontrol.StreamFlow
protocol.ReceiveStreamFlowControlWindow,
protocol.ByteCount(s.config.MaxReceiveStreamFlowControlWindow),
initialSendWindow,
s.onHasWindowUpdate,
s.rttStats,
s.logger,
)
@@ -1151,6 +1152,7 @@ func (s *session) newCryptoStream() cryptoStreamI {
protocol.ReceiveStreamFlowControlWindow,
protocol.ByteCount(s.config.MaxReceiveStreamFlowControlWindow),
0,
s.onHasWindowUpdate,
s.rttStats,
s.logger,
)