| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | tor_circmgr: simplify build_circuit a bit. | Nick Mathewson | 2021-06-20 | 1 | -0/+6 |
| | | |||||
| * | Use retry-error in tor-circmgr. | Nick Mathewson | 2021-06-17 | 1 | -2/+7 |
| | | |||||
| * | Enormous tor-circmgr rewrite. | Nick Mathewson | 2021-06-14 | 1 | -1/+34 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As with the tor-chanmgr code, the circuit manager is now implemented using an AbstractCircMgr type that uses traits to abstract the particular behavior of other types that it uses. (Specifically: circuits, building circuits, and telling whether one circuit usage is compatible with another.) Abstracting out the dependencies in this ways makes it possible to test the circuit manager without having to actually build real circuits. This commit also introduces new behavior for handling pending circuit requests. Upon getting a new request, first we check to see if there's an existing circuit we can use. If there isn't, we look for pending circuits and wait for them. If there aren't any pending circuits we can use, we launch one or more, and wait for them. So far, that's the same as the old behavior. But here's a change: if, while we are waiting for some pending circuits, a different circuit is completed, and it's one we could use, then the task that was building _that_ circuit will tell us: "please look at this circuit". This gives us better changes of getting a usable circuit fast. Minor changes: * The Error type in CircMgr no longer uses anyhow; several errors have been simplified. * We've gotten more formal about the relationship between circuit usage and target usage. | ||||
| * | Enforce (and obey) clippy lints about exhaustive enums, structs. | Nick Mathewson | 2021-04-27 | 1 | -0/+1 |
| | | | | | | | | | These lints force us to declare our exported enums and exhaustive-looking structs as non-exhaustive (so that we can add to them in the future without breaking our API) or to explicitly disable the warning for a given enum/struct (to say that we _intend_ for additions to be a breaking change). | ||||
| * | Add support for using fallback directories in path construction | Nick Mathewson | 2020-11-19 | 1 | -0/+5 |
| | | | | | | | This is mainly a refactoring commit, with a little new code. It also adds #[derive(Copy,Clone)] for a few types. | ||||
| * | tor-circmgr: timeout and retry support. | Nick Mathewson | 2020-11-11 | 1 | -0/+4 |
| | | |||||
| * | Use anyhow in tor-circmgr and tor-chanmgr | Nick Mathewson | 2020-11-11 | 1 | -12/+0 |
| | | |||||
| * | Document tor-circmgr | Nick Mathewson | 2020-11-02 | 1 | -0/+3 |
| | | |||||
| * | Implement rudimentary circuit-manager functionality | Nick Mathewson | 2020-11-02 | 1 | -0/+4 |
| | | | | | | This code is meant to "get or launch a circuit as appropriate." It's super dodgy, but it is probably good enough for a first pass. | ||||
| * | Add a new circuit-manager crate and move path selection there. | Nick Mathewson | 2020-11-02 | 1 | -0/+20 |
