limit Config.MaxIncoming{Uni}Streams to 2^60

This commit is contained in:
Marten Seemann 2020-08-11 10:44:24 +07:00
parent ce24f7e46f
commit 69df425318
5 changed files with 44 additions and 1 deletions

View file

@ -164,6 +164,9 @@ func dialContext(
if tlsConf == nil {
return nil, errors.New("quic: tls.Config not set")
}
if err := validateConfig(config); err != nil {
return nil, err
}
config = populateClientConfig(config, createdPacketConn)
packetHandlers, err := getMultiplexer().AddConn(pconn, config.ConnectionIDLength, config.StatelessResetKey, config.Tracer)
if err != nil {