Fix tcp keep alive

This commit is contained in:
世界
2022-07-31 09:46:05 +08:00
parent 770e58a79d
commit 1c50521985
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