read and write the stream id limits sent in the TLS handshake

This commit is contained in:
Marten Seemann
2018-02-04 16:18:36 +08:00
parent 8b04cd2bde
commit cd4bcda458
5 changed files with 26 additions and 16 deletions

View File

@@ -169,9 +169,11 @@ func (c *client) dialTLS() error {
params := &handshake.TransportParameters{
StreamFlowControlWindow: protocol.ReceiveStreamFlowControlWindow,
ConnectionFlowControlWindow: protocol.ReceiveConnectionFlowControlWindow,
MaxStreams: protocol.MaxIncomingStreams,
IdleTimeout: c.config.IdleTimeout,
OmitConnectionID: c.config.RequestConnectionIDOmission,
// TODO(#1150): set reasonable limits
MaxBidiStreamID: 0xffffffff,
MaxUniStreamID: 0xffffffff,
}
csc := handshake.NewCryptoStreamConn(nil)
extHandler := handshake.NewExtensionHandlerClient(params, c.initialVersion, c.config.Versions, c.version)