summaryrefslogtreecommitdiff
path: root/crates/tor-circmgr/src/mgr.rs
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/mr/148'Nick Mathewson2021-11-291-10/+2
|\
| * In struct PendingEntry, remove circ_specNeel Chauhan2021-11-281-10/+2
| |
* | add semicolons if nothing returnedDaniel Eades2021-11-251-3/+3
| |
* | deglob some enums, use concise iteration syntaxDaniel Eades2021-11-251-1/+1
|/
* Fold "circuit_timing" and "request_timing" into a single section.Nick Mathewson2021-11-181-30/+7
|
* Replace all println/eprintln calls outside of arti CLI with trace.Nick Mathewson2021-11-041-1/+2
|
* Mark request_retried test as ignoredNick Mathewson2021-10-281-0/+1
|
* circmgr: Split request_timeout test into two.Nick Mathewson2021-10-261-0/+7
| | | | | | | There seems to be some issue here with the new WaitFor code, where using the same MockSleepProvider with both of these wait_for() calls gives questionable behavior under some circumstances (like when running under Tarpaulin with the wrong set of flags).
* Overhaul the way WaitFor and the MockSleepProvider worketa2021-10-261-7/+51
| | | | | | | | | | | | | | | | | | | | | Instead of racily advancing time forward, this commit attempts to rework how WaitFor works, such that it makes advances when all sleeper futures that have been created have been polled (by handing the MockSleepRuntime a Waker with which to wake up the WaitFor). The above described mechanics work well enough for the double timeout test, but fail in the presence of code that spawns asynchronous / background tasks that must make progress before time is advanced for the test to work properly. In order to deal with these cases, a set of APIs are introduced in order to block time from being advanced until some code has run, and a carveout added in order to permit small advances in time where required. (In some cases, code needed to be hacked up a bit in order to be made properly testable using these APIs; the `MockablePlan` trait included in here is somewhat unfortunate.) This should fix arti#149.
* Implement the "request_loyalty" configuration optionNick Mathewson2021-10-191-2/+1
|
* Do not use set_ prefix on derive_builder settersJani Monoses2021-09-161-1/+1
|
* fix/silence clippy lints in test modulesDaniel Eades2021-09-081-0/+1
|
* A little more test coverage in tor-circmgr::mgrNick Mathewson2021-09-071-5/+35
|
* tor_circmgr::mgr -- refactor some duplicate code.Nick Mathewson2021-09-071-20/+32
|
* Rename pick_action to clarify that it can modify selfNick Mathewson2021-09-071-5/+5
|
* Move all crates into a `crates` subdirectory.Nick Mathewson2021-08-271-0/+1692
This will cause some pain for now, but now is really the best time to do this kind of thing.