Skip to content
Permalink
Browse files

Temporarily remove keep-alive option in listener

  • Loading branch information...
romshark committed Sep 5, 2019
1 parent b78c8c3 commit 4c1398c889d5976fb7b5221309ecca4922c849cb
Showing with 8 additions and 6 deletions.
  1. +8 −6 api/tcpKeepAliveListener.go
@@ -15,11 +15,13 @@ func (ln tcpKeepAliveListener) Accept() (net.Conn, error) {
if err != nil {
return nil, err
}
if err := tc.SetKeepAlive(true); err != nil {
return nil, err
}
if err := tc.SetKeepAlivePeriod(ln.KeepAliveDuration); err != nil {
return nil, err
}
/*
if err := tc.SetKeepAlive(true); err != nil {
return nil, err
}
if err := tc.SetKeepAlivePeriod(ln.KeepAliveDuration); err != nil {
return nil, err
}
*/
return tc, nil
}

0 comments on commit 4c1398c

Please sign in to comment.
You can’t perform that action at this time.