Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( QuicGoConnsAccepted = expvar.NewInt("quic_go_conns_accepted") QuicGoConnsOpened = expvar.NewInt("quic_go_conns_opened") QuicGoConnsClosed = expvar.NewInt("quic_go_conns_closed") )
View Source
var CancelRead quic.StreamErrorCode = 3558
View Source
var CancelWrite quic.StreamErrorCode = 3559
View Source
var MaxIncomingStreams int64 = 1 << 60
2^60 == 1152921504606846976
View Source
var QUICConfig = &quic.Config{ EnableDatagrams: true, MaxIncomingStreams: MaxIncomingStreams, }
View Source
var TLSConfig = &tls.Config{ InsecureSkipVerify: true, }
Functions ¶
Types ¶
type QuicSession ¶
type QuicSession struct {
Session quic.Connection
}
func (*QuicSession) Close ¶
func (s *QuicSession) Close() error
type StreamConn ¶
type StreamConn struct { quic.Stream Session quic.Connection }
StreamsConn wraps quic.Stream into net.Conn
func (*StreamConn) Close ¶
func (sc *StreamConn) Close() error
Close calls CancelRead to avoid memory leak, see - https://github.com/quic-go/quic-go/issues/3558 - https://pkg.go.dev/github.com/quic-go/quic-go#Stream
func (*StreamConn) CloseRead ¶
func (sc *StreamConn) CloseRead() error
func (*StreamConn) CloseWrite ¶
func (sc *StreamConn) CloseWrite() error
func (*StreamConn) LocalAddr ¶
func (sc *StreamConn) LocalAddr() net.Addr
LocalAddr is required to impl net.Conn
func (*StreamConn) RemoteAddr ¶
func (sc *StreamConn) RemoteAddr() net.Addr
RemoteAddr is required to impl net.Conn
Click to show internal directories.
Click to hide internal directories.