Skip to content

Commit

Permalink
Enable keepalive for tunnel connections.
Browse files Browse the repository at this point in the history
  • Loading branch information
goriccardo authored and mmatczuk committed Nov 28, 2017
1 parent 1162278 commit 5716e71
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,16 @@ func (s *Server) listen(l net.Listener, identifier id.ID) {
return
}

if err = keepAlive(conn); err != nil {
s.logger.Log(
"level", 1,
"msg", "could not enable TCP keepalive for tunnel connection",
"identifier", identifier,
"addr", addr,
"err", err,
)
}

s.logger.Log(
"level", 0,
"msg", "accept connection failed",
Expand Down

0 comments on commit 5716e71

Please sign in to comment.