Skip to content

Commit

Permalink
Merge pull request #584 from nats-io/accept_error_level
Browse files Browse the repository at this point in the history
[CHANGED] Client Accept error log level
  • Loading branch information
kozlovic authored Sep 11, 2017
2 parents 0c3d4ce + 4a6fd43 commit c3e0951
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -431,15 +431,15 @@ func (s *Server) AcceptLoop(clr chan struct{}) {
conn, err := l.Accept()
if err != nil {
if ne, ok := err.(net.Error); ok && ne.Temporary() {
s.Debugf("Temporary Client Accept Error(%v), sleeping %dms",
s.Errorf("Temporary Client Accept Error (%v), sleeping %dms",
ne, tmpDelay/time.Millisecond)
time.Sleep(tmpDelay)
tmpDelay *= 2
if tmpDelay > ACCEPT_MAX_SLEEP {
tmpDelay = ACCEPT_MAX_SLEEP
}
} else if s.isRunning() {
s.Noticef("Accept error: %v", err)
s.Errorf("Client Accept Error: %v", err)
}
continue
}
Expand Down

0 comments on commit c3e0951

Please sign in to comment.