mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-16 19:14:41 -07:00
Merge branch 'main' into dev
This commit is contained in:
@@ -3598,7 +3598,7 @@ func (s *Server) acceptError(acceptName string, err error, tmpDelay time.Duratio
|
||||
return -1
|
||||
}
|
||||
//lint:ignore SA1019 We want to retry on a bunch of errors here.
|
||||
if ne, ok := err.(net.Error); ok && ne.Temporary() {
|
||||
if ne, ok := err.(net.Error); ok && ne.Temporary() { // nolint:staticcheck
|
||||
s.Errorf("Temporary %s Accept Error(%v), sleeping %dms", acceptName, ne, tmpDelay/time.Millisecond)
|
||||
select {
|
||||
case <-time.After(tmpDelay):
|
||||
|
||||
Reference in New Issue
Block a user