-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(iroh_net): less agressive best_addr clearing on pong timeout (#2238)
## Description Clears the best address only if within the time the pong should have been received, nothing else was seen so that the address is considered not alive in that period. This should result in less aggressive best_addr clearing. Specific changes include: - remove `BestAddr::clear_if_addr_older` since it is no longer needed. - change `BestAddr::clear*` return since it was never read anyway. - check for alive withing the `PING_TIMEOUT_DURATION` before clearing the best address on timeout - misc docs fixes in code related to being alive/active ## Breaking Changes n/a ## Notes & open questions n/a ## Change checklist - [x] Self-review. - [x] Documentation updates if relevant. - [ ] ~Tests if relevant.~ - [ ] ~All breaking changes documented.~
- Loading branch information
1 parent
1fd81c0
commit 88ba244
Showing
2 changed files
with
38 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters