summaryrefslogtreecommitdiff
path: root/crates/tor-proto
Commit message (Collapse)AuthorAgeFilesLines
...
| * tor-proto: Reinstate circuit hop check in test_create()Neel Chauhan2024-10-161-4/+1
| |
* | Disable a lot of dead code warnings (fmt)Ian Jackson2024-10-171-1/+4
| |
* | Disable a lot of dead code warningsIan Jackson2024-10-171-1/+1
| | | | | | | | | | | | | | Now cargo check --workspace --no-default-features --all-targets cargo build -p arti --no-default-features --features=memquota,tokio,native-tls are both clean.
* | Rename "memquota" feature to "memquota-memcost" when it's just HasMemoryCostIan Jackson2024-10-161-3/+3
| | | | | | | | It's not documented anywhere ATM. I will do that in a followup MR.
* | Apply `default-features = false` to all tor-memquota depsIan Jackson2024-10-161-1/+1
|/ | | | | | | This will allow us to make `tor-memquota/memquota` enabled by default, without forcing it to be compiled in everywhere. I don't change that in this MR, though.
* Merge branch 'test-panic' into 'main'Jim Newsome2024-10-151-14/+14
|\ | | | | | | | | Abolish `_ => panic!()` See merge request tpo/core/arti!2534
| * Replace _ => panic!() in tor-protoIan Jackson2024-10-151-14/+14
| |
* | Merge branch 'mq-toplevel' into 'main'Ian Jackson2024-10-151-14/+15
|\ \ | | | | | | | | | | | | Abolish the toplevel Account See merge request tpo/core/arti!2537
| * | memquota: Change ToplevelAccount to be an alias for Arc<MemoryQuotaTracker>Ian Jackson2024-10-151-14/+15
| |/ | | | | | | Fixes a TODO.
* / memquota: Document the actual behaviour re streams/circuitsIan Jackson2024-10-151-4/+6
|/ | | | As per decision in #1661.
* Merge branch 'mq-circ' into 'main'David Goulet2024-10-107-35/+39
|\ | | | | | | | | | | | | Use memquota queue for channel->circuit RX data Closes #1682 See merge request tpo/core/arti!2518
| * Apply deferred rustfmt churnIan Jackson2024-10-095-13/+7
| |
| * memquota: Use an mq_queue for channel->circuit RX queueIan Jackson2024-10-095-16/+18
| | | | | | | | | | | | Fixes #1682. (This involves some noise in the tests.)
| * memquota: Introduce type aliases for channel->circuit RX queueIan Jackson2024-10-094-13/+18
| | | | | | | | | | This is neater and will make changing the type (in a moment) less noisy.
| * memquota: impl HasMemoryCost for ClientCircChanMsgIan Jackson2024-10-091-1/+4
| | | | | | | | We'll need this in a moment.
* | Merge branch 'mq-doc' into 'main'Ian Jackson2024-10-092-1/+95
|\| | | | | | | | | | | | | memquota architecture documentation Closes #1660 See merge request tpo/core/arti!2509
| * memquota: Expand on ChannelAccountIan Jackson2024-10-091-0/+1
| | | | | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2509#note_3089914
| * memquota: Add docs and TODOs re inbound channel->circuit dataIan Jackson2024-10-092-0/+3
| | | | | | | | | | See https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2509#note_3089913
| * emquota: Clarify circuit data queueIan Jackson2024-10-091-1/+1
| |
| * memquota: Further docs tweaksIan Jackson2024-10-091-0/+2
| |
| * mq docs: Clarity that chanmgr and circmgr share the ToplevelAccountIan Jackson2024-10-071-1/+3
| |
| * mq docs: Add some formulaic cross-references to memquota newtypesIan Jackson2024-10-071-0/+12
| |
| * mq docs: Rewrite and expand overview/architecture doc in tor-protoIan Jackson2024-10-071-16/+66
| |
| * mq docs: Move arti queues text to tor_proto::memquotaIan Jackson2024-10-071-0/+24
| |
* | Merge branch 'memquota-macro-tidying' into 'main'Ian Jackson2024-10-081-21/+25
|\ \ | | | | | | | | | | | | tor-proto: memquota: Tidying up See merge request tpo/core/arti!2508
| * | tor-proto: memquota: Rationalise macro innardsIan Jackson2024-10-071-11/+13
| | | | | | | | | | | | | | | No functional change, but use of ${select1 ...} will make it easier to add more approaches.
| * | tor-proto: memquota: Fix a docs typoIan Jackson2024-10-071-1/+1
| | |
| * | tor-proto: memquota: Rename SpecificAccount::Parent to ConstructedFromIan Jackson2024-10-071-11/+13
| |/ | | | | | | This was already a bit inaccurate and it's going to become more so.
* / tor-proto: Fix flaky circuit::test::accept_valid_sendme test.Wesley Aptekar-Cassels2024-10-071-4/+3
|/ | | | Fixes: #628
* tor-proto: Remove the no-longer needed allowsIan Jackson2024-10-033-3/+0
|
* tor-proto: Make incoming stream requests participate in memquota (fmt)Ian Jackson2024-10-031-2/+2
|
* tor-proto: Make incoming stream requests participate in memquotaIan Jackson2024-10-032-3/+5
|
* tor-proto: Implement HasMemoryCost for StreamReqInfoIan Jackson2024-10-031-1/+8
| | | | | This is necessarily a bit fudged, since a StreamReqInfo is full of exciting things like ends of other MPSC queues.
* tor-proto: Make stream queues participate in memquota (fmt)Ian Jackson2024-10-031-2/+2
|
* tor-proto: Make stream queues participate in memquotaIan Jackson2024-10-032-8/+19
| | | | Change the typss of StreamMpscSender and StreamMpscReceiver.
* tor-proto: channel: Provide time_provider accessorsIan Jackson2024-10-031-0/+17
| | | | This will save circuits etc. keeping their own clone of the time provider.
* tor-proto: Make circuit->channel queues participate in memquotaIan Jackson2024-10-033-10/+41
| | | | | | | | We use the *channel*'s memquota account. This is arguably wrong, but it's hard to get right now. See #1652. Change the type of the queue, and the places it's constructed. The use sites can all stay the same.
* tor-proto: Introduce a fake_mpsc helper for channel testsIan Jackson2024-10-031-2/+11
| | | | | This provides a nice place to change in the tests, when we want to change the way the queue is made.
* tor-proto: Put a StreamAccount in DataStream etc.Ian Jackson2024-10-034-7/+29
|
* tor-proto: Put a StreamAccount in DataStream etc. (pre-fmt)Ian Jackson2024-10-031-2/+9
|
* tor-proto: Put a CircuitAccount in ClientCirc and circuit::ReactorIan Jackson2024-10-032-1/+18
|
* tor-proto: Plumb the ChannelAccount through to queue creation siteIan Jackson2024-10-034-6/+51
| | | | | This gets it as far as the outbound circuit->channel mpsc queue creation. Also, we provide an accessor for it.
* tor-proto: Plumb the ChannelAccount through to queue creation site (pre-fmt)Ian Jackson2024-10-032-2/+10
|
* tor-proto: Make PendingClientCirc::new fallible (fmt)Ian Jackson2024-10-031-7/+1
|
* tor-proto: Make PendingClientCirc::new fallibleIan Jackson2024-10-032-6/+7
|
* tor-proto: channel: Make construction fallibleIan Jackson2024-10-033-5/+7
| | | | | Making a channel is going to involve making a memquota Participant, which can fail.
* tor-proto: Provide a variant for memquota errorsIan Jackson2024-10-031-0/+6
|
* Provide newtypes to distinguish memoquota accounts at different levelsIan Jackson2024-10-032-0/+118
|
* Merge branch 'mcost' into 'main'Ian Jackson2024-10-023-5/+13
|\ | | | | | | | | Implement tor_memquota:HasMemory cost for a lot of types See merge request tpo/core/arti!2459
| * Some HasMemoryCost impls in tor-protoIan Jackson2024-10-023-5/+13
| |