Explorar o código

pool: when a dial fails assume the host is down

Chris Bannister %!s(int64=10) %!d(string=hai) anos
pai
achega
1c28cbd211
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      connectionpool.go

+ 2 - 0
connectionpool.go

@@ -400,6 +400,8 @@ func (pool *hostConnPool) fill() {
 		if err != nil {
 			// probably unreachable host
 			go pool.fillingStopped()
+
+			pool.session.handleNodeDown(net.ParseIP(pool.host.Peer()), pool.port)
 			return
 		}