| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | tor-dirclient: Use AsyncBufRead to simplify code a bit. | Nick Mathewson | 2021-04-13 | 2 | -29/+63 | |
| | | | | | | | | | | | | Previously we read too much data from our input, and then used the unused portion as an initial state of a buffer for handling subsequent data. Yuck! Instead we can just use an AsyncBufRead and only read the parts we want. This code takes some pains to never read too much data: I'd rather just "read until the first CRLF" or have some kind of pushback mechanism. But for now it's probably fine. | |||||
| * | Merge branch 'dirstate' | Nick Mathewson | 2021-04-13 | 11 | -1154/+1449 | |
| |\ | ||||||
| | * | Major revision on DirMgr logic -- almost a complete rewrite. | Nick Mathewson | 2021-04-13 | 10 | -1139/+1298 | |
| | | | | | | | | | | | | | | | | | The big idea of this revision is to separate the code that knows about doing downloads from the code that decides what to download. Later, we can make a similar change for database access. With these changes together, we can make our code much more testable, and eventually enable more download types in parallel. | |||||
| | * | DocQuery: sort requests before splitting. | Nick Mathewson | 2021-04-09 | 1 | -4/+13 | |
| | | | ||||||
| | * | Start moving responsibility for building requests into dirmgr | Nick Mathewson | 2021-04-09 | 4 | -40/+167 | |
| | | | | | | | | | This will help with my planned "directory state" refactoring. | |||||
| * | | Remove fallback_caches.toml, which is no longer in sync | Nick Mathewson | 2021-04-13 | 2 | -747/+0 | |
| | | | ||||||
| * | | Merge remote-tracking branch 'origin/mr/30' | Nick Mathewson | 2021-04-13 | 1 | -410/+1374 | |
| |\ \ | ||||||
| | * | | fallbackdir: New list from April 2021 | David Goulet | 2021-04-12 | 1 | -410/+1374 | |
| | |/ | | | | | | | Signed-off-by: David Goulet <[email protected]> | |||||
| * / | circmgr: Add missing rng trait to build_path() | David Goulet | 2021-04-09 | 1 | -1/+4 | |
| |/ | | | | Signed-off-by: David Goulet <[email protected]> | |||||
| * | rtcompat: Add a cancellable-task-handle type. | Nick Mathewson | 2021-04-09 | 2 | -4/+24 | |
| | | | | | | | | The API is a bit yucky, since it has to be compatible with tokio and async_std. (Also, this patch fixes some async_std clippy warnings) | |||||
| * | Merge branch 'mr_28_squashed' | Nick Mathewson | 2021-04-07 | 3 | -0/+31 | |
| |\ | ||||||
| | * | circmgr: Add a function to build a circuit by path | David Goulet | 2021-04-07 | 3 | -0/+31 | |
| |/ | | | | | | | Public function so an application can use to build a circuit using a custom path. Signed-off-by: David Goulet <[email protected]> | |||||
| * | Upgrade rsa, zstd, httpdate. Remove redundant pin-project. | Nick Mathewson | 2021-04-05 | 4 | -4/+3 | |
| | | ||||||
| * | Remove a few unused dependencies | Nick Mathewson | 2021-04-05 | 3 | -3/+0 | |
| | | ||||||
| * | Upgrade rusqlite; remove needless usage. | Nick Mathewson | 2021-04-05 | 4 | -29/+16 | |
| | | ||||||
| * | DirMgr::netdir() is no longer async | Nick Mathewson | 2021-04-02 | 3 | -13/+10 | |
| | | | | | | | | | Since we moved to a non-async mutex(*), we no longer need to worry that this function might need to suspend. (*) This is _not_ safe in general, but it's okay in this case, since we never suspend while holding that mutex: see shared_ref.rs. | |||||
| * | missing file. | Nick Mathewson | 2021-04-02 | 1 | -0/+78 | |
| | | ||||||
| * | Turn the shared network directory reference into its own type | Nick Mathewson | 2021-04-02 | 1 | -27/+13 | |
| | | | | | | | Doing this will make it easier to use it from other parts of the crate, and will make it more obvious that it's safe to use a regular (not async) rwlock here. | |||||
| * | Merge branch 'hs3_ntor_squashed' | Nick Mathewson | 2021-04-02 | 3 | -0/+533 | |
| |\ | ||||||
| | * | hs_ntor: add a disclaimer and put it behind a feature. | Nick Mathewson | 2021-04-02 | 3 | -0/+12 | |
| | | | ||||||
| | * | First draft of HS Ntor implementation. | George Kadianakis | 2021-04-02 | 2 | -0/+521 | |
| | | | ||||||
| * | | Fix a rust 1.51 warning: remove a semicolon | Nick Mathewson | 2021-04-02 | 1 | -1/+1 | |
| | | | ||||||
| * | | Make ConsensusRequest take a flavor. | Nick Mathewson | 2021-04-01 | 2 | -10/+15 | |
| | | | ||||||
| * | | Add accessors for members of different directory requests | Nick Mathewson | 2021-04-01 | 3 | -38/+66 | |
| | | | | | | | | | | | | | | | | | This will let us use these types both as client and server-side implementations. Making this change required me to change the download code to take requests by reference. (Sorry, David) | |||||
| * | | Rename ClientRequest to Requestable. | Nick Mathewson | 2021-04-01 | 2 | -8/+8 | |
| |/ | ||||||
| * | DirMgr: add text() and texts() functions to ask for document text | Nick Mathewson | 2021-03-31 | 7 | -32/+320 | |
| | | | | | | Also, start on a larger refactoring where we ask for documents by their ID. | |||||
| * | Note redundancy in authority and fallback toml files. | Nick Mathewson | 2021-03-31 | 2 | -0/+8 | |
| | | ||||||
| * | Refactor sqlite.rs to know about consensus flavors. | Nick Mathewson | 2021-03-31 | 2 | -27/+56 | |
| | | | | | | These were stored in the database before, but they were hardwired in the API. | |||||
| * | Make ConsensusFlavor a real type. | Nick Mathewson | 2021-03-31 | 2 | -27/+58 | |
| | | | | | Previously we were "stringly typing" this field. Now it's time to stop. | |||||
| * | Use Arc::make_mut() to simplify the code a bit | Nick Mathewson | 2021-03-30 | 2 | -26/+11 | |
| | | | | | | Previously we used NetDir::extend here, which used try_unwrap. But it's much simpler to use the intended object for this purpose. | |||||
| * | Look for RdDigest in the right location | Nick Mathewson | 2021-03-30 | 1 | -1/+2 | |
| | | ||||||
| * | Merge branch 'sd-storage' | Nick Mathewson | 2021-03-30 | 1 | -12/+124 | |
| |\ | ||||||
| | * | small tweaks to routerdesc storage code. | Nick Mathewson | 2021-03-30 | 1 | -48/+20 | |
| | | | ||||||
| | * | dirmgr: Add functions to store/read/update router descriptors | David Goulet | 2021-03-30 | 1 | -3/+131 | |
| | | | | | | | | | Signed-off-by: David Goulet <[email protected]> | |||||
| | * | dirmgr: Add SQLite schema for router descriptors | David Goulet | 2021-03-30 | 1 | -9/+21 | |
| | | | | | | | | | Signed-off-by: David Goulet <[email protected]> | |||||
| * | | Rename ServerDescriptorRequest to RouterDescRequest | Nick Mathewson | 2021-03-30 | 1 | -7/+7 | |
| | | | | | | | | | | | Rationale: the name of the request should match the name of the type that you parse from it. | |||||
| * | | ServerDescriptorRequest: handle "all.z" case differently | Nick Mathewson | 2021-03-30 | 1 | -7/+25 | |
| | | | | | | | | | | | | | Having "no descriptors" mean "all of them" is kind of an accident waiting to happen, and had wrong behavior for partial_docs_ok() and max_response_len(). | |||||
| * | | fix clippy warnings in request.rs | Nick Mathewson | 2021-03-30 | 1 | -5/+2 | |
| | | | ||||||
| * | | Move RdDigest to routerdesc.rs | Nick Mathewson | 2021-03-30 | 4 | -8/+5 | |
| | | | ||||||
| * | | dir: Add server descriptor directory request | David Goulet | 2021-03-30 | 2 | -0/+63 | |
| |/ | | | | Signed-off-by: David Goulet <[email protected]> | |||||
| * | rs: Add getters to router status objects | David Goulet | 2021-03-30 | 1 | -0/+12 | |
| | | | | | Signed-off-by: David Goulet <[email protected]> | |||||
| * | Client: Add a function to expose the current dirmgr. | Nick Mathewson | 2021-03-30 | 2 | -0/+10 | |
| | | | | | | | | | This function sits behind an `experimental-api` feature so that we don't need to worry about exposing the entire surface of DirMgr to our API consumers. This and the other recent patches are based on work from dgoulet. | |||||
| * | Experimental accessor functions for Relay members. | Nick Mathewson | 2021-03-30 | 2 | -0/+30 | |
| | | ||||||
| * | Make RouterFlags public. | Nick Mathewson | 2021-03-30 | 1 | -4/+11 | |
| | | ||||||
| * | Tell .gitignore to ignore more "target" directories. | Nick Mathewson | 2021-03-30 | 1 | -1/+3 | |
| | | ||||||
| * | Add an accessor for the members of a relay family. | Nick Mathewson | 2021-03-30 | 1 | -0/+6 | |
| | | ||||||
| * | Make reasonable set of default fallback directories | Nick Mathewson | 2021-03-30 | 5 | -9/+761 | |
| | | ||||||
| * | Give the authorities value a reasonable default. | Nick Mathewson | 2021-03-30 | 2 | -1/+36 | |
| | | ||||||
| * | Add a NetDirConfig::use_default_cache_path() function. | Nick Mathewson | 2021-03-30 | 2 | -1/+16 | |
| | | ||||||
| * | resolve a clippy issue | Nick Mathewson | 2021-03-30 | 1 | -1/+3 | |
| | | ||||||
