Documentation
¶
Overview ¶
Package quictransport owns UDP sockets and QUIC connection establishment.
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func DefaultConfig ¶
func EditTransportParameters ¶
func EditTransportParameters(h *quic.ClientHandshake, edit func(*transportparams.Layout))
EditTransportParameters amends a fresh snapshot for each connection, retaining per-attempt randomization without mutating a factory's layout or slices.
func IsGreaseParameter ¶
The implemented legacy min_ack_delay is a protocol field, despite its residue.
Types ¶
type Dialer ¶
type Dialer struct {
// OnConnectionStarted observes the prepared UDP path immediately before
// entering QUIC. It must return promptly and may be called for candidates.
OnConnectionStarted func(context.Context)
NetDialer *net.Dialer
LookupIPAddr func(context.Context, string) ([]net.IPAddr, error)
Proxy string
Lazy bool
ResolveAll bool
AddressFallbackDelay time.Duration
ReceivePacketSize int
// ReceiveBatchSize selects UDP batch capacity before socket ownership starts.
ReceiveBatchSize int
ConnectionIDLength int
ConnectionIDGenerator quic.ConnectionIDGenerator
DedicatedConn bool
// contains filtered or unexported fields
}
Dialer owns UDP sockets and QUIC connection attempts for one HTTP/3 transport. NetDialer preserves the client's resolver pointer; configuration is set before use.
func (*Dialer) Close ¶
func (ut *Dialer) Close()
Close releases the shared UDP transport. HTTP/3 owns application connections.
func (*Dialer) Dial ¶
func (ut *Dialer) Dial( ctx context.Context, address string, tlsConfig *tls.Config, config *quic.Config, hints []netip.Addr, ) (*quic.Conn, error)
Dial completes the handshake before exposing the connection.
type ProxyUDPError ¶
type ProxyUDPError struct {
// contains filtered or unexported fields
}
ProxyUDPError means QUIC never reached the destination. TCP may still be supported by the same SOCKS proxy; cancellation keeps its original meaning.
func (*ProxyUDPError) Error ¶
func (e *ProxyUDPError) Error() string
func (*ProxyUDPError) Unwrap ¶
func (e *ProxyUDPError) Unwrap() error
type ZeroConnectionIDGenerator ¶
type ZeroConnectionIDGenerator struct{}
func (ZeroConnectionIDGenerator) ConnectionIDLen ¶
func (ZeroConnectionIDGenerator) ConnectionIDLen() int
func (ZeroConnectionIDGenerator) GenerateConnectionID ¶
func (ZeroConnectionIDGenerator) GenerateConnectionID() (quic.ConnectionID, error)