FULI
FULI
> > 现在是只要TCPconn不被引用,自然会gc 然后关闭掉socket 。注意我的setfinalizer改动 E-mail: _**@**_.*** Blog: https://github.com/xtaci > > […](#) > > On Sun, Aug 18, 2024 at 13:31 chenfeixyz _**@**_._**> wrote: _**@**_.**_ @chenfeixyz https://github.com/chenfeixyz 试试这个update,看是否重现, go get...
kcptun的tcpraw.Dial后,返回的是*TCPConn,这个一旦没有被kcptun引用了,会触发SetFinalizer中的wrapper.Close,进而关闭socket fd
commit d5a4974890c39481e7a3d263309f889174749588 @chenfeixyz 试下 主动关闭和被动关闭都具有了。
https://github.com/xtaci/tcpraw/tree/v1.2.27
https://github.com/xtaci/kcptun/commit/ca79329a4dc19954e98d41f715fd8de0426c74e8 还有这个commit,之前因为有udp2raw,没有花多少心思在tcp模拟
还包含了iptables的重置
https://github.com/xtaci/kcp-go/compare/master...hotfix273 HI @cohosh, can you try this commit?
> Thanks, that got rid of some of the race conditions but it looks like there are some remaining and our tests are still failing. > > There's one [in...
https://github.com/xtaci/kcp-go/blob/master/sess_test.go#L432-L464
恐怕不适合吧,这种应该是我的老本行,通信的信道编码,以编码方式解决传输信道的信噪比问题。 除非无人机已经有公共信道。