| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Try to fix a nightly rustdoc warning | Nick Mathewson | 2021-06-17 | 1 | -1/+1 |
| | | |||||
| * | Use FuturesUnordered, not SelectAll<Once<...>> | Nick Mathewson | 2021-06-14 | 1 | -7/+6 |
| | | | | | Closes #124 | ||||
| * | tor-proto: change internal meta-handler API for error-proofing | Nick Mathewson | 2021-05-28 | 1 | -1/+1 |
| | | | | | | | | The previous API required the caller to check that the meta-cell it got was coming from the right hop; the new API requires the caller to say which hop it expects to get a cell from. With this change, it's not possible to omit the correct-hop check. | ||||
| * | Use the "typos" tool to fix some spelling | Nick Mathewson | 2021-05-26 | 3 | -3/+3 |
| | | |||||
| * | Add the "unreachable_pub" lint. | Nick Mathewson | 2021-05-18 | 3 | -23/+27 |
| | | | | | | | This is a somewhat obnoxious change in its scope and requirements, but it makes it easier to understand what the real public and private parts of our APIs are. | ||||
| * | Add unseparated_literal_suffix lint, and fix it. | Nick Mathewson | 2021-05-03 | 1 | -1/+1 |
| | | |||||
| * | Fix Rust-1.51 clippy warnings about acronyms in camel case. | Nick Mathewson | 2021-03-29 | 1 | -1/+1 |
| | | | | | This is painful, but we shouldn't have to do it again. | ||||
| * | Add tests for correct incoming sendme handling. | Nick Mathewson | 2021-03-22 | 1 | -0/+9 |
| | | | | | | | At this point I'm going to pause writing tor-proto tests for a little while and think about refactoring that could make these tests simpler. I'm doing way too much copy-paste here. | ||||
| * | Refactor circuit reactor for testing. | Nick Mathewson | 2021-03-16 | 1 | -1/+6 |
| | | |||||
| * | Merge remote-tracking branch 'origin/mr/16' into main | Nick Mathewson | 2021-02-26 | 1 | -22/+37 |
| |\ | |||||
| | * | Refactor StreamMap methods to use HashMap::Entry | George Kadianakis | 2021-02-26 | 1 | -22/+37 |
| | | | |||||
| * | | Fix an intermittent test failure on int overflow. | Nick Mathewson | 2021-02-19 | 1 | -1/+4 |
| |/ | |||||
| * | Run cargo fix --edition-idioms | Nick Mathewson | 2020-12-02 | 2 | -2/+2 |
| | | |||||
| * | Expose UniqId types for channels and circuits | Nick Mathewson | 2020-12-01 | 1 | -5/+6 |
| | | |||||
| * | Rename LogId -> UniqId. | Nick Mathewson | 2020-12-01 | 2 | -13/+13 |
| | | |||||
| * | Derive more types for circuit and channel LogIds | Nick Mathewson | 2020-12-01 | 1 | -1/+1 |
| | | |||||
| * | Move closed-check for circuits into an atomicbool. | Nick Mathewson | 2020-11-13 | 1 | -5/+4 |
| | | |||||
| * | Make Arc<>-ness of ClientCirc explicit. | Nick Mathewson | 2020-11-12 | 1 | -8/+7 |
| | | |||||
| * | tor-proto API: Use new_ref, not clone. | Nick Mathewson | 2020-10-29 | 1 | -1/+0 |
| | | | | | | | Semantically, cloning a Channel or Circuit is actually increasing an internal reference count. We should name the functions to reflect that, to be more explicit about what we're doing. | ||||
| * | Downgrade an XXXXM3 message. | Nick Mathewson | 2020-10-27 | 1 | -1/+1 |
| | | |||||
| * | Make circuit reactors also have a run_once() method for testing. | Nick Mathewson | 2020-10-27 | 1 | -27/+34 |
| | | |||||
| * | Add a fake, reactorless channel, for use in testing circuits | Nick Mathewson | 2020-10-27 | 1 | -3/+1 |
| | | |||||
| * | Remove a bunch of dbg! calls. | Nick Mathewson | 2020-10-26 | 2 | -2/+3 |
| | | |||||
| * | Use event_listener to find out about sendme replenishment. | Nick Mathewson | 2020-10-26 | 1 | -30/+11 |
| | | | | | | Previously we would fail if a sendme window was exhausted and two tasks were waiting for it to be replenished at the same time. | ||||
| * | Resolve a bunch of XXXM3 comments in tor-proto. | Nick Mathewson | 2020-10-26 | 3 | -59/+70 |
| | | |||||
| * | Improve documentation in tor-proto | Nick Mathewson | 2020-10-26 | 1 | -3/+6 |
| | | |||||
| * | Add a CircEnt::DestroySent circuit state. | Nick Mathewson | 2020-10-26 | 1 | -0/+37 |
| | | | | | | | | A circuit enters DestroySent after it's sent a DESTROY cell. We use this state to make sure that we don't receive too many cells on a destroyed circuit, _and_ so that we don't block such cells completely. | ||||
| * | Rename CircID and StreamID to end with Id instead, for consistency | Nick Mathewson | 2020-10-25 | 2 | -16/+16 |
| | | |||||
| * | Add some tests for channel reactor and related code. | Nick Mathewson | 2020-10-25 | 1 | -0/+2 |
| | | |||||
| * | circuit: Remove the needlessly separated ReactorCore type. | Nick Mathewson | 2020-10-23 | 1 | -29/+16 |
| | | |||||
| * | Use an enum for the return value of StreamMap::terminate | Nick Mathewson | 2020-10-22 | 2 | -8/+25 |
| | | |||||
| * | Initial tests for tor_proto::circuit::streammap | Nick Mathewson | 2020-10-22 | 1 | -0/+51 |
| | | |||||
| * | Tests for tor_proto::circuit::halfstream | Nick Mathewson | 2020-10-22 | 1 | -1/+79 |
| | | |||||
| * | tor-proto: Add tests for circuit::sendme | Nick Mathewson | 2020-10-22 | 1 | -4/+134 |
| | | |||||
| * | Add tests for tor_proto::circuit::celltypes | Nick Mathewson | 2020-10-21 | 1 | -0/+43 |
| | | |||||
| * | Follow API convention about mutable getters. | Nick Mathewson | 2020-10-21 | 1 | -6/+6 |
| | | | | | They're supposed to be called field_mut(). | ||||
| * | Missing file and docs | Nick Mathewson | 2020-10-20 | 1 | -0/+29 |
| | | |||||
| * | Add some helpful logs in circuit code. | Nick Mathewson | 2020-10-20 | 1 | -0/+29 |
| | | |||||
| * | Mark must-resolve XXXX issues with "XXXXM3". | Nick Mathewson | 2020-10-18 | 3 | -12/+12 |
| | | | | | | | | | | | "M3" is for "milestone 3" -- my target to fix the technical debt that I think will be bad if we ship even a pre-alpha with it. These aren't necessarily _all_ must-resolve, but they're all must-look-at. Closes #15 | ||||
| * | tor-proto: Add a ClientCircChanMsg type. | Nick Mathewson | 2020-10-15 | 2 | -11/+33 |
| | | | | | | | This wraps exactly the ChanMsg values that are valid on open client circuits, so that we can be sure that only those cells are sent to a ClientCirc's reactor. | ||||
| * | tor-proto: Add a "CreateResponse" type. | Nick Mathewson | 2020-10-15 | 1 | -0/+37 |
| | | | | | | | CreateResponse includes exactly those cells that are a correct response to a CREATE2/CREATE_FAST, so we can be sure that only those cells are actually passed to a PendingClientCirc. | ||||
| * | Fix a couple of clippy warnings | Nick Mathewson | 2020-10-15 | 1 | -1/+1 |
| | | |||||
| * | Use weak references from circuit reactor to circimpl. | Nick Mathewson | 2020-10-14 | 1 | -14/+29 |
| | | | | | This prevents the reactor from keeping the circuit alive forever. | ||||
| * | Revise DropMark defense to use a better type and match Tor's behavior. | Nick Mathewson | 2020-10-13 | 4 | -12/+96 |
| | | |||||
| * | Document all private members in tor-proto | Nick Mathewson | 2020-10-13 | 3 | -1/+27 |
| | | |||||
| * | Improve handling of circuit closure or failure on reactor shutdown. | Nick Mathewson | 2020-10-13 | 1 | -0/+19 |
| | | | | | | | | | | | We already handled the case okay when we were reading on streams, since the reactor's going away would drop the sender side of their mpsc channels. But if the reactor went away, nothing would tell _writing_ streams that they needed to close. Now we handle that case, as well as anybody who is waiting on a meta-cell to get back to them. | ||||
| * | Another tweak to handling closing streams | Nick Mathewson | 2020-10-13 | 3 | -14/+40 |
| | | | | | | | When a stream is closed and we haven't adjusted its state in the stream map yet, remember how many cells we've dropped so we can decrement them from the window later on. | ||||
| * | Try giving distinct handling to streams where END has been sent | Nick Mathewson | 2020-10-12 | 3 | -42/+95 |
| | | | | | | | This is the first step along the line to handling Tor issue tor#27557. We want to remember streams that we've ended and treat them as distinct from streams that have never existed | ||||
| * | Tweak terminate hand handle_close() functions. | Nick Mathewson | 2020-10-11 | 2 | -13/+20 |
| | | | | | | These need to become functions about terminating and noticing a termination request. | ||||
| * | Rename StreamMap::Closing to EndReceived | Nick Mathewson | 2020-10-11 | 1 | -4/+4 |
| | | | | | This is in preparation for adding a different EndSent stream state. | ||||
