FULI
FULI
It makes no difference if you use UDPSession, UDPSession works only in stream mode, but it does make a difference if you use kcp.go directly. Maybe I should remove this...
嗯,貌似是可以的。
target: 127.0.0.1:8488 是socks5 protocol?
在std/copy.go中,会处理关闭。
另外tcp的实现并不是很完美,可以用[udp_to_raw](https://github.com/wangyu-/udp2raw)
即使这里没关闭,那么garbage collection也会close掉这个链接,只是不够实时而已,不会出现fd不断增加的情况。
可能问题出在tcpraw,但需要分析一下
现在是只要TCPconn不被引用,自然会gc 然后关闭掉socket 。注意我的setfinalizer改动 E-mail: ***@***.*** Blog: https://github.com/xtaci On Sun, Aug 18, 2024 at 13:31 chenfeixyz ***@***.***> wrote: > ***@***.*** > > @chenfeixyz 试试这个update,看是否重现, go get -u > ***@***.*** > >...
这个是肯定会Close掉socket的
tagged to : https://github.com/xtaci/tcpraw/releases/tag/v1.2.26 我在休假,估计要下周才能具体的debug,不过思路肯定是这个,让他GC就可以了。 kcptun的deps也更新到了v1.2.26