Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Commit

Permalink
Temporarily remove keep-alive option in listener
Browse files Browse the repository at this point in the history
  • Loading branch information
romshark committed Sep 5, 2019
1 parent b78c8c3 commit 4c1398c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions api/tcpKeepAliveListener.go
Expand Up @@ -15,11 +15,13 @@ func (ln tcpKeepAliveListener) Accept() (net.Conn, error) {
if err != nil { if err != nil {
return nil, err return nil, err
} }
if err := tc.SetKeepAlive(true); 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.SetKeepAlivePeriod(ln.KeepAliveDuration); err != nil {
} return nil, err
}
*/
return tc, nil return tc, nil
} }

0 comments on commit 4c1398c

Please sign in to comment.