Skip to content

Commit

Permalink
Merge pull request #97 from libp2p/reset-temp-err-catcher
Browse files Browse the repository at this point in the history
reset the temporary error catcher delay after successful accept
  • Loading branch information
marten-seemann authored Dec 21, 2021
2 parents 20281dd + f06d0df commit c622cb0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions p2p/net/upgrader/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ func (l *listener) handleIncoming() {
l.err = err
return
}
catcher.Reset()

// gate the connection if applicable
if l.upgrader.ConnGater != nil && !l.upgrader.ConnGater.InterceptAccept(maconn) {
Expand Down

0 comments on commit c622cb0

Please sign in to comment.