Additionally, mark the LostUsablityRace error as a "reset".

This commit is contained in:
Nick Mathewson 2022-08-16 11:23:02 -04:00
parent 4c9bf4803c
commit 8862eb1e34
1 changed files with 5 additions and 1 deletions

View File

@ -337,10 +337,14 @@ impl Error {
// `CircMgr`). If it happens, it just means that we should try again
// with the new configuration.
Error::CircCanceled => true,
// This error is a reset because it doesn't indicate anything wrong
// with the circuit: it just means that multiple requests all wanted
// to use the circuit at once, and they turned out not to be
// compatible with one another after the circuit was built.
Error::LostUsabilityRace(_) => true,
Error::PendingCanceled
| Error::PendingFailed(_)
| Error::LostUsabilityRace(_)
| Error::UsageMismatched(_)
| Error::CircTimeout
| Error::RequestTimeout