Fix tcp keep alive

This commit is contained in:
世界
2022-07-31 09:46:05 +08:00
parent 0eed0ca11a
commit d06fd03dd8
4 changed files with 3 additions and 15 deletions

View File

@@ -154,8 +154,6 @@ func (a *myInboundAdapter) loopTCPIn() {
if err != nil {
return
}
conn.SetKeepAlive(true)
conn.SetKeepAlivePeriod(C.TCPKeepAlivePeriod)
go func() {
ctx := log.ContextWithNewID(a.ctx)
var metadata adapter.InboundContext