MCPcopy Create free account
hub / github.com/HyBuildNet/quic-relay / registerDCIDLength

Method registerDCIDLength

internal/proxy/proxy.go:606–613  ·  view source on GitHub ↗

registerDCIDLength adds a DCID length to the known lengths.

(length int)

Source from the content-addressed store, hash-verified

604
605// registerDCIDLength adds a DCID length to the known lengths.
606func (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.

Callers 2

handlePacketMethod · 0.95
learnServerSCIDMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected