Merge pull request #3060 from lucas-clemente/check-active-conn-id-limit-for-0rtt

only accept 0-RTT it the active_connection_id_limit didn't change
This commit is contained in:
Marten Seemann 2021-03-09 15:58:53 +08:00 committed by GitHub
commit c802ebe026
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 17 deletions

View file

@ -446,7 +446,8 @@ func (p *TransportParameters) ValidFor0RTT(tp *TransportParameters) bool {
p.InitialMaxStreamDataUni == tp.InitialMaxStreamDataUni &&
p.InitialMaxData == tp.InitialMaxData &&
p.MaxBidiStreamNum == tp.MaxBidiStreamNum &&
p.MaxUniStreamNum == tp.MaxUniStreamNum
p.MaxUniStreamNum == tp.MaxUniStreamNum &&
p.ActiveConnectionIDLimit == tp.ActiveConnectionIDLimit
}
// String returns a string representation, intended for logging.