| 16 | ) |
| 17 | |
| 18 | type quicStreamPacketConn struct { |
| 19 | connId uint16 |
| 20 | quicConn *quic.Conn |
| 21 | inputConn *N.BufferedConn |
| 22 | |
| 23 | udpRelayMode types.UdpRelayMode |
| 24 | maxUdpRelayPacketSize int |
| 25 | |
| 26 | deferQuicConnFn func(quicConn *quic.Conn, err error) |
| 27 | closeDeferFn func() |
| 28 | writeClosed *atomic.Bool |
| 29 | |
| 30 | closeOnce sync.Once |
| 31 | closeErr error |
| 32 | closed bool |
| 33 | |
| 34 | deFragger |
| 35 | } |
| 36 | |
| 37 | func (q *quicStreamPacketConn) Close() error { |
| 38 | q.closeOnce.Do(func() { |
nothing calls this directly
no outgoing calls
no test coverage detected