mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-04 04:37:36 +03:00
reject invalid active_connection_id_limit transport parameter values (#3687)
This commit is contained in:
parent
89769f409f
commit
3d9380ec3c
6 changed files with 54 additions and 28 deletions
|
@ -303,6 +303,9 @@ func (p *TransportParameters) readNumericTransportParameter(
|
|||
}
|
||||
p.MaxAckDelay = time.Duration(val) * time.Millisecond
|
||||
case activeConnectionIDLimitParameterID:
|
||||
if val < 2 {
|
||||
return fmt.Errorf("invalid value for active_connection_id_limit: %d (minimum 2)", val)
|
||||
}
|
||||
p.ActiveConnectionIDLimit = val
|
||||
case maxDatagramFrameSizeParameterID:
|
||||
p.MaxDatagramFrameSize = protocol.ByteCount(val)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue