forked from quic-go/quic-go
docs: improve documentation of OptimizeConn (#3910)
This commit is contained in:
@@ -31,7 +31,8 @@ type Transport struct {
|
||||
// Bad things will happen if passed to multiple Transports.
|
||||
//
|
||||
// If not done by the user, the connection is passed through OptimizeConn to enable a number of optimizations.
|
||||
// After passing the connection to the Transport, its invalid to call ReadFrom and WriteTo.
|
||||
// After passing the connection to the Transport, it's invalid to call ReadFrom on the connection.
|
||||
// Calling WriteTo is only valid on the connection returned by OptimizeConn.
|
||||
Conn net.PacketConn
|
||||
|
||||
// The length of the connection ID in bytes.
|
||||
|
||||
Reference in New Issue
Block a user