mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-04 20:23:59 +00:00
@@ -19,6 +19,7 @@ Special thanks to external contributors on this release:
|
||||
### FEATURES:
|
||||
|
||||
### IMPROVEMENTS:
|
||||
- [pex] \#3037 only log "Reached max attempts to dial" once
|
||||
|
||||
### BUG FIXES:
|
||||
- [p2p] \#2967 Fix file descriptor leaks
|
||||
|
||||
@@ -471,7 +471,11 @@ func (r *PEXReactor) dialPeer(addr *p2p.NetAddress) {
|
||||
attempts, lastDialed := r.dialAttemptsInfo(addr)
|
||||
|
||||
if attempts > maxAttemptsToDial {
|
||||
r.Logger.Error("Reached max attempts to dial", "addr", addr, "attempts", attempts)
|
||||
// Do not log the message if the addr gets readded.
|
||||
if attempts+1 == maxAttemptsToDial {
|
||||
r.Logger.Info("Reached max attempts to dial", "addr", addr, "attempts", attempts)
|
||||
r.attemptsToDial.Store(addr.DialString(), _attemptsToDial{attempts + 1, time.Now()})
|
||||
}
|
||||
r.book.MarkBad(addr)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user