registerDCIDLength adds a DCID length to the known lengths.
(length int)
| 604 | |
| 605 | // registerDCIDLength adds a DCID length to the known lengths. |
| 606 | func (p *Proxy) registerDCIDLength(length int) { |
| 607 | p.dcidLengthsMu.Lock() |
| 608 | if p.dcidLengths == nil { |
| 609 | p.dcidLengths = make(map[int]struct{}) |
| 610 | } |
| 611 | p.dcidLengths[length] = struct{}{} |
| 612 | p.dcidLengthsMu.Unlock() |
| 613 | } |
| 614 | |
| 615 | // learnServerSCID extracts server's SCID(s) from a Long Header response datagram |
| 616 | // and registers them as aliases for the original DCID. |
no outgoing calls
no test coverage detected