| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| | * | Introduce ClientConfig for is_localhost config parameter | Neel Chauhan | 2021-10-06 | 6 | -7/+57 | |
| | | | ||||||
| | * | Hostname corrections and add IPv6 hostname validation support | Neel Chauhan | 2021-10-06 | 1 | -5/+15 | |
| | | | ||||||
| | * | Reject bad hostnames and internal addresses in Arti | Neel Chauhan | 2021-10-06 | 1 | -0/+39 | |
| | | | ||||||
| * | | Do not use downcast_ref, use tor-client error. | Jani Monoses | 2021-10-18 | 1 | -8/+6 | |
| | | | ||||||
| * | | Remove anyhow usage in tor-client. | Jani Monoses | 2021-10-18 | 4 | -5/+65 | |
| | | | ||||||
| * | | Remove useless into() conversions caught by clippy. | Jani Monoses | 2021-10-18 | 5 | -28/+30 | |
| | | | ||||||
| * | | Remove anyhow dependency from tor-dirmgr. | Jani Monoses | 2021-10-18 | 4 | -13/+62 | |
| | | | ||||||
| * | | Use unwrap in tests. | Jani Monoses | 2021-10-18 | 1 | -9/+15 | |
| | | | | | | | | | | | | | | | | | | | For now, this avoids having to separately handle AuthorityBuilderError, DirMgrConfigBuilderError, DownloadScheduleConfigBuilderError, NetworkConfigBuilderError and FallbackDirBuilderError when anyhow is not used. Turn off a clippy warning. | |||||
| * | | Use append in place of extend_from_slice in DataReaderImpl::add_data. | Nick Mathewson | 2021-10-17 | 1 | -2/+2 | |
| | | | | | | | | | Suggested by @cheako. | |||||
| * | | Turn off default-features in chrono where possible. | Nick Mathewson | 2021-10-17 | 2 | -2/+2 | |
| | | | ||||||
| * | | Add a cast to correct a type error about WSAEMFILE | Nick Mathewson | 2021-10-15 | 1 | -1/+7 | |
| | | | ||||||
| * | | arti: On startup, increase the NOFILE resource limit. | Nick Mathewson | 2021-10-14 | 3 | -0/+29 | |
| | | | | | | | | | | | | | | | | | | | | | | | The default soft limit is typically enough for process usage on most Unixes, but OSX has a pretty low default (256), which you can run into easily under heavy usage. With this patch, we're going to aim for as much as 16384, if we're allowed. Fixes part of #188. | |||||
| * | | proxy: Mark ENFILES and EMFILES as survivable. | Nick Mathewson | 2021-10-14 | 2 | -2/+33 | |
| | | | | | | | | | | | | | | | | | I don't love this approach, but those errors aren't distinguished by ErrorKind, so we have to use libc or winapi, apparently. At least nothing here is unsafe. Addresses part of #188. | |||||
| * | | Add a few tracing directives to tor-dirmgr. | Nick Mathewson | 2021-10-13 | 3 | -3/+14 | |
| | | | ||||||
| * | | tor-dirmgr: report bootstrap success on all successful cases. | Nick Mathewson | 2021-10-13 | 1 | -0/+5 | |
| | | | | | | | | | | | Previously we would sometimes fail to report that we had successfully bootstrapped. | |||||
| * | | Fix a documentation link error. | Nick Mathewson | 2021-10-13 | 1 | -4/+2 | |
| | | | ||||||
| * | | Report errors in logging configuration a bit more usefully | Nick Mathewson | 2021-10-13 | 1 | -2/+22 | |
| | | | ||||||
| * | | Document trace_filter example in main.rs too. | Nick Mathewson | 2021-10-13 | 1 | -0/+2 | |
| | | | ||||||
| * | | Don't report the bootstrap as completed unless it actually succeeds. | Nick Mathewson | 2021-10-13 | 2 | -5/+14 | |
| | | | | | | | | | | | (Previously we'd report it as successful even if the inner download task was a failure.) | |||||
| * | | Use better reporting for guard status. | Nick Mathewson | 2021-10-13 | 5 | -24/+127 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous code would report all failures to build a circuit as failures of the guard. But of course that's not right: If we fail to extend to the second or third hop, that might or might not be the guard's fault. Now we use the "pending status" feature of the GuardMonitor type so that an early failure is attributed to the guard, but a later failure is attributed as "Indeterminate". Only a complete circuit is called a success. We use a new "GuardStatusHandle" type here so that we can report the status early if there is a timeout. | |||||
| * | | Rename GuardStatusMsg, make it public, add an `Indeterminate` case. | Nick Mathewson | 2021-10-13 | 3 | -26/+43 | |
| | | | ||||||
| * | | Implement guards for multihop paths. | Nick Mathewson | 2021-10-13 | 3 | -26/+87 | |
| | | | | | | | | | There are some limitations here, as noted in the comments. | |||||
| * | | Actually select guards for directory circuits. | Nick Mathewson | 2021-10-13 | 4 | -13/+27 | |
| | | | ||||||
| * | | Pass the guard manager down to the path selection functions. | Nick Mathewson | 2021-10-11 | 5 | -14/+37 | |
| | | | ||||||
| * | | WIP | Nick Mathewson | 2021-10-11 | 4 | -13/+19 | |
| | | | ||||||
| * | | Make the guard selection function return a more useful type. | Nick Mathewson | 2021-10-11 | 3 | -4/+56 | |
| | | | ||||||
| * | | Add a function to look up a Relay by ChanTarget. | Nick Mathewson | 2021-10-11 | 1 | -0/+8 | |
| | | | ||||||
| * | | Integrate GuardUsability and GuardMonitor into CircuitBuilder. | Nick Mathewson | 2021-10-10 | 3 | -11/+73 | |
| | | | | | | | | | | | | | (When we're building a path with a guard, we need to tell the guard manager whether the path succeeded, and we need to wait to hear whether the guard is usable.) | |||||
| * | | Notify guard manager on network change and state flush. | Nick Mathewson | 2021-10-10 | 6 | -8/+67 | |
| | | | ||||||
| * | | Add a GuardMgr member to CircuitBuilder | Nick Mathewson | 2021-10-10 | 5 | -4/+21 | |
| | | | ||||||
| * | | Change the GuardMgr APIs to no longer be async. | Nick Mathewson | 2021-10-10 | 1 | -32/+18 | |
| | | | ||||||
| * | | Use an mpsc::unbounded() channel in GuardMgr. | Nick Mathewson | 2021-10-10 | 2 | -29/+22 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | The advantage here is that we no longer have to use a futures-aware Mutex, or a blocking send operation, and therefore can simplify a bunch of the GuardMgr APIs to no longer be async. That'll avoid having to propagate the asyncness up the stack. The disadvantage is that unbounded channels are just that: nothing in the channel prevents us from overfilling it. Fortunately, the process that consumes from the channel shouldn't block much, and the channel only gets filled when we're planning a circuit path. | |||||
| * | | Require up-to-date x25519-dalek, async_executors, and argh. | Nick Mathewson | 2021-10-09 | 3 | -3/+3 | |
| | | | | | | | | | | | | | | | | | I tried using -Z minimal-versions to downgrade all first-level dependencies to their oldest permitted versions, and found that we were apparently depending on newer features of all three crates. I'm kind of surprised there were only three. | |||||
| * | | Lock down some dirmgr config functions. | Nick Mathewson | 2021-10-09 | 1 | -11/+11 | |
| | | | ||||||
| * | | Re-export configuration types from tor-client. | Nick Mathewson | 2021-10-09 | 10 | -12/+55 | |
| | | | ||||||
| * | | enable checked_conversions lint. | Nick Mathewson | 2021-10-09 | 29 | -22/+74 | |
| | | | ||||||
| * | | Normalize tor-guardmgr warnings | Nick Mathewson | 2021-10-09 | 1 | -6/+6 | |
| | | | ||||||
| * | | Note a possible heisenbug in a unit test. | Nick Mathewson | 2021-10-08 | 1 | -0/+6 | |
| | | | ||||||
| * | | Fix some typos (via the "typos" tool) | Nick Mathewson | 2021-10-08 | 1 | -2/+2 | |
| | | | ||||||
| * | | Add a few tracing calls to tor-guardmgr. | Nick Mathewson | 2021-10-08 | 3 | -17/+74 | |
| | | | ||||||
| * | | Update the tor-guardmgr README.md. | Nick Mathewson | 2021-10-07 | 1 | -1/+97 | |
| | | | ||||||
| * | | Resolve small issues and XXXX/TODO comments in GuardMgr. | Nick Mathewson | 2021-10-07 | 5 | -48/+63 | |
| | | | | | | | | | | | By the time I merge this, most of the comments should have tickets to go with them. | |||||
| * | | Tests for top-level GuardMgr. | Nick Mathewson | 2021-10-07 | 5 | -23/+205 | |
| | | | | | | | | | | | | | | | Also, refactor our message handling to be more like the tor_proto reactors. The previous code had a bug where, once the stream of events was exhausted, we wouldn't actually get any more notifications. | |||||
| * | | Tests for tor_guardmgr::sample. | Nick Mathewson | 2021-10-07 | 1 | -1/+330 | |
| | | | ||||||
| * | | Initial tests for tor_guardmgr::guard | Nick Mathewson | 2021-10-07 | 2 | -0/+296 | |
| | | | ||||||
| * | | Implement persistent state for guard mgr | Nick Mathewson | 2021-10-07 | 2 | -10/+26 | |
| | | | ||||||
| * | | Initial backend implementation for guard node manager. | Nick Mathewson | 2021-10-07 | 14 | -12/+2545 | |
| | | | | | | | | | | | | | | | There are some missing parts here (like persistence and tests) and some incorrect parts (I am 90% sure that the "exploratory circuit" flag is bogus). Also it is not integrated with the circuit manager code. | |||||
| * | | Update total_weight to use UncheckedRelay. | Nick Mathewson | 2021-10-07 | 1 | -3/+7 | |
| | | | ||||||
| * | | Make UncheckedRelay public in tor-netdir. | Nick Mathewson | 2021-10-07 | 1 | -4/+4 | |
| | | | | | | | | | This will let us provide a couple of better APIs for use in tor-guardmgr | |||||
| * | | Add From<u64> for RelayWeight. | Nick Mathewson | 2021-10-07 | 1 | -0/+6 | |
| | | | ||||||
