Browse Source

pool: when a dial fails assume the host is down

Chris Bannister 10 years ago
parent
commit
1c28cbd211
1 changed files with 2 additions and 0 deletions
  1. 2 0
      connectionpool.go

+ 2 - 0
connectionpool.go

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