summaryrefslogtreecommitdiff
path: root/crates/tor-guardmgr/src/dirstatus.rs
Commit message (Collapse)AuthorAgeFilesLines
* Fix a rustdoc linkNick Mathewson2022-04-051-5/+5
|
* GuardMgr: Track directory status and circuit status separately.Nick Mathewson2022-04-051-1/+2
| | | | | | | | | | | | | Previously, we treated successfully building a circuit to a guard as a "success", and any failure, including a directory cache failure, as a failure. With this change, guards now have separate success/failure and retry status for circuit usage and directory usage. This change is needed for guard-as-directory retry to have reasonable behavior. Otherwise, when a guard succeeds at building a circuit, that clears the directory-is-failing status and makes us retry the guards to quickly.
* Allow DirStatus objects to have different timeout floorsNick Mathewson2022-04-041-19/+17
| | | | This will help when we give Guards a DirStatus as well.
* Rename fallback::status::Status to DirStatus.Nick Mathewson2022-04-041-0/+102
It's about to be shared between fallbacks and guards.