never increase the flow control limit for the crypto stream

This commit is contained in:
Marten Seemann
2018-09-18 21:40:42 -04:00
parent f78c0035b9
commit 8bd6168511
5 changed files with 9 additions and 28 deletions

View File

@@ -186,7 +186,6 @@ func (s *sendStream) getDataForWriting(maxBytes protocol.ByteCount) ([]byte, boo
return nil, s.finishedWriting && !s.finSent
}
// TODO(#657): Flow control for the crypto stream
if s.streamID != s.version.CryptoStreamID() {
maxBytes = utils.MinByteCount(maxBytes, s.flowController.SendWindowSize())
}