소스 검색

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
 		}