| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | Test for tor_dirclient::read_until_limited() | Nick Mathewson | 2021-04-20 | 1 | -0/+35 | |
| | | ||||||
| * | tor-dirclient: more requests.rs tests | Nick Mathewson | 2021-04-20 | 1 | -10/+69 | |
| | | ||||||
| * | Move timer functions into an extension trait. | Nick Mathewson | 2021-04-17 | 2 | -5/+5 | |
| | | ||||||
| * | Move around the public modules in tor_rtcompat. | Nick Mathewson | 2021-04-17 | 1 | -1/+1 | |
| | | ||||||
| * | Remove all non-runtime methods in tor_rtcompat. | Nick Mathewson | 2021-04-16 | 1 | -9/+19 | |
| | | ||||||
| * | Add a "Runtime" parameter to all the manager types. | Nick Mathewson | 2021-04-16 | 1 | -3/+6 | |
| | | | | | | This is a big change, but it is a step towards our goal of removing tor_rtcompat:: calls directly. | |||||
| * | Replace tor-decompress with async-compression crate. | Nick Mathewson | 2021-04-13 | 3 | -64/+50 | |
| | | | | | This lets us simplify tor-dirclient a fair bit. Closes #79. | |||||
| * | 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. | |||||
| * | Major revision on DirMgr logic -- almost a complete rewrite. | Nick Mathewson | 2021-04-13 | 1 | -2/+2 | |
| | | | | | | | | | 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. | |||||
| * | Start moving responsibility for building requests into dirmgr | Nick Mathewson | 2021-04-09 | 1 | -0/+31 | |
| | | | | | This will help with my planned "directory state" refactoring. | |||||
| * | Upgrade rsa, zstd, httpdate. Remove redundant pin-project. | Nick Mathewson | 2021-04-05 | 1 | -1/+1 | |
| | | ||||||
| * | Make ConsensusRequest take a flavor. | Nick Mathewson | 2021-04-01 | 1 | -9/+13 | |
| | | ||||||
| * | Add accessors for members of different directory requests | Nick Mathewson | 2021-04-01 | 2 | -35/+63 | |
| | | | | | | | | | 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 | |
| | | ||||||
| * | 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 | 1 | -1/+1 | |
| | | ||||||
| * | dir: Add server descriptor directory request | David Goulet | 2021-03-30 | 1 | -0/+60 | |
| | | | | | Signed-off-by: David Goulet <[email protected]> | |||||
| * | Fix Rust-1.51 clippy warnings about acronyms in camel case. | Nick Mathewson | 2021-03-29 | 2 | -4/+4 | |
| | | | | | This is painful, but we shouldn't have to do it again. | |||||
| * | Rename Rsa{Identity,Signature} to fix clippy warning. | Nick Mathewson | 2021-03-29 | 1 | -4/+4 | |
| | | ||||||
| * | Refactor errors in tor-decompress and tor-dirclient. | Nick Mathewson | 2021-03-24 | 4 | -67/+104 | |
| | | | | | | This lets us reinstate the code in dirclient that retired circuits depending on the error type. | |||||
| * | dirclient: add a function to download over a stream. | Nick Mathewson | 2021-03-24 | 2 | -70/+88 | |
| | | | | | | Also, remove references to DataStream, and comment on the future of the module. | |||||
| * | Add the tor project as an author. | Nick Mathewson | 2021-03-17 | 1 | -1/+1 | |
| | | ||||||
| * | Add keywords to each Cargo.toml | Nick Mathewson | 2021-03-17 | 1 | -0/+1 | |
| | | ||||||
| * | Add a description field to all our Cargo.toml files | Nick Mathewson | 2021-03-17 | 1 | -0/+1 | |
| | | ||||||
| * | Give it a homepage everyplace. | Nick Mathewson | 2021-03-17 | 1 | -0/+1 | |
| | | ||||||
| * | Use AsyncRead and AsyncWrite in tor-dirclient | Nick Mathewson | 2021-03-10 | 1 | -4/+8 | |
| | | ||||||
| * | Bump dependencies with "cargo upgrade" | Nick Mathewson | 2021-03-06 | 1 | -1/+1 | |
| | | ||||||
| * | Remove an unwrap in dirclient. | Nick Mathewson | 2021-03-04 | 1 | -40/+41 | |
| | | ||||||
| * | Move content-encoding handling to decompress | Nick Mathewson | 2021-03-04 | 2 | -69/+2 | |
| | | | | | This way tor-dirclient doesn't need to link to the compression crates. | |||||
| * | Moves decompress related code into tor-decompress crate | Kushal Das | 2021-03-04 | 3 | -263/+4 | |
| | | | | | | The related data structures are marked as public in the tor-decompress crate so that tor-dirclient can access them. | |||||
| * | Port to work with tokio or async-std. | Nick Mathewson | 2021-03-02 | 2 | -3/+4 | |
| | | | | | | | | | | | | | | | | | | | This is fairly ugly and I think I'll need to mess around with the feature configuration a while until we get something that's pleasant to develop with. This still seems like a good idea, though, since we _will_ need to be executor-agnostic in the end, or we'll have no way to handle wasm or embedded environments. Later down the road, we'll probably want to use futures::Executor or futures::Spawn more than having global entry points in tor_rtcompat. That would probably make our feature story simpler. Tokio is the default now, since tokio seems to be more heavily used for performance-critical stuff. This patch breaks tests; the next one will fix them, albeit questionably. | |||||
| * | Update to latest futures, once_cell | Nick Mathewson | 2021-02-23 | 1 | -1/+1 | |
| | | ||||||
| * | Update some dependencies. | Nick Mathewson | 2021-02-19 | 1 | -1/+1 | |
| | | ||||||
| * | upgrade a few dependencies | Nick Mathewson | 2021-02-10 | 1 | -1/+1 | |
| | | ||||||
| * | bump serde and log | Nick Mathewson | 2021-02-01 | 1 | -1/+1 | |
| | | ||||||
| * | Merge remote-tracking branch 'origin/mr/12' into main | Nick Mathewson | 2021-01-27 | 1 | -2/+9 | |
| |\ | ||||||
| | * | Add an error type check in test_get_decompressor_err in tor-dirclient | hiro | 2021-01-25 | 1 | -2/+9 | |
| | | | ||||||
| * | | A few more tests in request.rs | Nick Mathewson | 2021-01-26 | 1 | -5/+9 | |
| |/ | ||||||
| * | Add a test for consensus requests in tor-dirclient. | hiro | 2021-01-22 | 1 | -0/+25 | |
| | | ||||||
| * | Fix a test in tor-dirclient | Nick Mathewson | 2021-01-21 | 1 | -2/+2 | |
| | | ||||||
| * | Merge remote-tracking branch 'origin/mr/10' into main | Nick Mathewson | 2021-01-21 | 4 | -2/+109 | |
| |\ | ||||||
| | * | Reformats the code and removes extra return | Kushal Das | 2021-01-21 | 1 | -5/+10 | |
| | | | | | | | | | Based rust nightly cargo fmt. | |||||
| | * | Adds decompress_in_parts_zstd test | Kushal Das | 2021-01-21 | 1 | -0/+37 | |
| | | | | | | | | | | | | | Now we are testing decompression of the input via calling the process method 3 times. We get the final decompressed output only after the third call. | |||||
| | * | Adds decompression test for zstd | Kushal Das | 2021-01-21 | 1 | -0/+27 | |
| | | | | | | | | | Tests the decompression of the whole input in one go. | |||||
| | * | Adds zstd decompression implementation for dirclient | Kushal Das | 2021-01-21 | 4 | -2/+40 | |
| | | | | | | | | | Adds dependency to zstd crate. | |||||
| * | | Add a test for encoding authcert requests | Nick Mathewson | 2021-01-21 | 1 | -0/+28 | |
| | | | ||||||
| * | | Add a little testing in tor-dirclient | Nick Mathewson | 2021-01-21 | 4 | -2/+64 | |
| |/ | ||||||
| * | require latest futures crate | Nick Mathewson | 2021-01-15 | 1 | -1/+1 | |
| | | ||||||
