forked from quic-go/quic-go
introduce an ECNCapablePacketConn interface to determine ECN support
This commit is contained in:
@@ -109,6 +109,8 @@ func dialAddrContext(
|
||||
}
|
||||
|
||||
// Dial establishes a new QUIC connection to a server using a net.PacketConn.
|
||||
// If the PacketConn satisfies the ECNCapablePacketConn interface (as a net.UDPConn does), ECN support will be enabled.
|
||||
// In this case, ReadMsgUDP will be used instead of ReadFrom to read packets.
|
||||
// The same PacketConn can be used for multiple calls to Dial and Listen,
|
||||
// QUIC connection IDs are used for demultiplexing the different connections.
|
||||
// The host parameter is used for SNI.
|
||||
|
||||
Reference in New Issue
Block a user