浏览代码

pool: when a dial fails assume the host is down

Chris Bannister 10 年之前
父节点
当前提交
1c28cbd211
共有 1 个文件被更改,包括 2 次插入0 次删除
  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
 		}