mirror of
https://gitee.com/IrisVega/frp.git
synced 2024-11-01 22:31:29 +08:00
pkg/util/net: fix quic streams leak (#3246)
This commit is contained in:
parent
b03f0ad1e6
commit
5cfbb976f4
@ -211,3 +211,8 @@ func (conn *wrapQuicStream) RemoteAddr() net.Addr {
|
|||||||
}
|
}
|
||||||
return (*net.TCPAddr)(nil)
|
return (*net.TCPAddr)(nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (conn *wrapQuicStream) Close() error {
|
||||||
|
conn.Stream.CancelRead(0)
|
||||||
|
return conn.Stream.Close()
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user