| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | ChannelState::ready_to_expire: return true when rem time is zero | Jim Newsome | 2023-12-13 | 1 | -0/+5 |
| | | | | | | | | | | | | This fixes a race condition that would normally be fairly benign - it would result in scheduling to check for expired channels again immediately, and assuming non-zero time passes would then remove the channel. In Shadow's default time model though, zero time passes in this case, so we just keep scheduling to check again immediately forever; i.e. deadlock. | ||||
| * | ChannelState::ready_to_expire: refactor using let-else | Jim Newsome | 2023-12-13 | 1 | -18/+14 |
| | | |||||
| * | continually_expire_channels: don't round off expiration delay | Jim Newsome | 2023-12-13 | 1 | -1/+1 |
| | | | | | | | | | | Without this change, if the delay is less than one second, the code will effectively busy-loop until the delay has elapsed. This potentially leads to deadlock in shadow simulations, and wastes CPU in real usage. https://shadow.github.io/docs/guide/limitations.html?highlight=busy#busy-loops | ||||
| * | continually_expire_channels: refactor using let-else | Jim Newsome | 2023-12-13 | 1 | -3/+2 |
| | | |||||
| * | oneshot: Apply deferred rustfmt churn | Ian Jackson | 2023-10-11 | 1 | -1/+1 |
| | | | | | cargo fmt, precisely. | ||||
| * | oneshot: Use veneer in tor-chanmgr | Ian Jackson | 2023-10-11 | 1 | -1/+1 |
| | | |||||
| * | Add initial support for running a PT in server mode | Saksham Mittal | 2023-08-24 | 2 | -3/+3 |
| | | |||||
| * | Run maint/add_warning to add lint block everywhere | Ian Jackson | 2023-08-23 | 8 | -0/+8 |
| | | |||||
| * | Resolve a pair of warnings about redundant closures. | Nick Mathewson | 2023-08-22 | 1 | -1/+1 |
| | | |||||
| * | Run add_warnings on all files. | Nick Mathewson | 2023-08-04 | 1 | -2/+2 |
| | | |||||
| * | Fix a pair of rustdoc links in chanmgr. | Nick Mathewson | 2023-07-19 | 1 | -2/+2 |
| | | |||||
| * | Move an import to resolve a warning. | Nick Mathewson | 2023-07-13 | 1 | -1/+2 |
| | | |||||
| * | Explain better why you would use build_unmanaged_channel | Nick Mathewson | 2023-07-13 | 1 | -2/+7 |
| | | |||||
| * | Resolve numerous typos in `ChanMgr::build_unmanaged_channel` code | gabi-250 | 2023-07-13 | 1 | -4/+4 |
| | | |||||
| * | chanmgr: Remove now-unused (and never usable) builder() method. | Nick Mathewson | 2023-07-13 | 1 | -12/+0 |
| | | |||||
| * | chanmgr: Document makeup and timeout behavior of our factories | Nick Mathewson | 2023-07-13 | 1 | -0/+22 |
| | | | | | | Basically, it's all ChanBuilder at some point, and ChanBuilder has a timeout. | ||||
| * | chanmgr: Add an experimental build_unmanaged_channel() method. | Nick Mathewson | 2023-07-13 | 1 | -0/+26 |
| | | | | | | This method will let the user construct a channel that isn't stored or monitored by the ChanMgr. | ||||
| * | Gate builder() behind experimental-api feature | Saksham Mittal | 2023-07-12 | 1 | -1/+1 |
| | | |||||
| * | Merge branch 'channelfactory' into 'main' | Nick Mathewson | 2023-07-12 | 1 | -1/+7 |
| |\ | | | | | | | | | Expose channel builder in order to create channels more efficiently in external code See merge request tpo/core/arti!1374 | ||||
| | * | Make CompoundFactory private for external code | Saksham Mittal | 2023-07-07 | 1 | -1/+0 |
| | | | |||||
| | * | Mark builder() as experimental | Saksham Mittal | 2023-07-06 | 1 | -0/+1 |
| | | | |||||
| | * | Import ChannelFactory instead of CompoundFactory | Saksham Mittal | 2023-07-06 | 1 | -3/+3 |
| | | | |||||
| | * | Rename get_channelbuilder() to builder() | Saksham Mittal | 2023-07-06 | 1 | -1/+1 |
| | | | |||||
| | * | Conditionally make CompoundFactory public | Saksham Mittal | 2023-07-06 | 1 | -1/+2 |
| | | | |||||
| | * | Remove now unnecessary lines for import | Saksham Mittal | 2023-07-05 | 1 | -2/+0 |
| | | | |||||
| | * | Import CompoundFactory regardless of feature level | Saksham Mittal | 2023-07-05 | 1 | -3/+1 |
| | | | |||||
| | * | Create new method to expose CompoundFactory | Saksham Mittal | 2023-07-05 | 1 | -0/+9 |
| | | | |||||
| | * | Expose CompoundFactory for later exposure in API | Saksham Mittal | 2023-07-05 | 1 | -1/+1 |
| | | | |||||
| * | | Merge branch 'clippy-allow' into 'main' | Ian Jackson | 2023-07-11 | 9 | -0/+9 |
| |\ \ | | | | | | | | | | | | | clippy: Allow some of our existing code patterns See merge request tpo/core/arti!1396 | ||||
| | * | | Run maint/add_warning to actually apply new lint allows | Ian Jackson | 2023-07-10 | 9 | -0/+9 |
| | | | | |||||
| * | | | rng ranges: Use gen_range_checked().expect() in obvious cases (fmt) | Ian Jackson | 2023-07-10 | 1 | -2/+3 |
| | | | | |||||
| * | | | rng ranges: Use gen_range_checked().expect() in obvious cases | Ian Jackson | 2023-07-10 | 1 | -2/+3 |
| |/ / | | | | | | | In each of these, it is locally obvious that the range is nonempty. | ||||
| * | | Add exceptions for some cases of diverging_sub_expression | Nick Mathewson | 2023-07-10 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | | See here for documentation on the lint: https://rust-lang.github.io/rust-clippy/master/index.html#/diverging_sub_expression The issue here, from what I can tell, is that the lint triggers whenever you use a diverging expression as a function body within an | ||||
| * | | Throughout: Use *_report!() macros for reporting Errors. | Nick Mathewson | 2023-07-07 | 2 | -6/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I identified the cases to replace by searching for the string `.report()`. There are a few that I didn't change: * A couple of cases that used anyhow::Error, * One case that reported two Errors. * Two cases in `tor_hsclient::err` that just did `error!("Bug: {}")`. I have also not audited the cases in `tor-hsclient` where we're using `tor_error::Report` manually. Nonetheless, closes #949. | ||||
| * | | Run add_warning to remove `missing_panics_doc` deny. | Nick Mathewson | 2023-07-06 | 1 | -1/+0 |
| |/ | | | | Closes #950. | ||||
| * | ChanMgr: Tweak documentation a bit. | Nick Mathewson | 2023-06-28 | 1 | -9/+13 |
| | | | | | | Adjust formatting, add more references to lower-level APIs, and clarify lifetimes a little more. | ||||
| * | Add Channel expiry info in ChanMgr docs | Saksham Mittal | 2023-06-27 | 1 | -0/+7 |
| | | |||||
| * | lints: Run maint/add_warning to actually apply new lints | Ian Jackson | 2023-06-21 | 1 | -0/+2 |
| | | |||||
| * | Fix a local-only CPU DoS bug. | Nick Mathewson | 2023-05-23 | 1 | -0/+15 |
| | | | | | | | | | | | | | | | | | | | Previously, there was a bug in the way that our code used our SOCKS implementations. If the buffer used for a SOCKS handshake became full without completing the handshake, then rather than expanding the buffer or closing the connection, our code would keep trying to read into the zero-byte slice available in the full buffer forever, in a tight loop. We're classifying this as a LOW-severity issue, since it is only exploitable by pluggable transports (which are trusted) and by local applications with access to the SOCKS port. Closes #861. Fixes TROVE-2023-001. Reported-By: Jakob Lell <jakob AT srlabs DOT de> | ||||
| * | chanmgr: fix a unit-default warning from clippy nightly. | Nick Mathewson | 2023-05-18 | 1 | -1/+1 |
| | | | | | | | I could also have stopped using `::default()` to construct this (testing-only) object, but I think it makes more sense to turn it into a non-unit object. | ||||
| * | chanmgr: remove a needless mut. | Nick Mathewson | 2023-05-11 | 1 | -1/+1 |
| | | | | | This fixes a warning from nightly clippy. | ||||
| * | tor-netdir: Update tests to parse the descriptor, make test consensus ↵ | Gabriela Moldovan | 2023-05-03 | 1 | -1/+2 |
| | | | | | | | lifetime configurable. Signed-off-by: Gabriela Moldovan <[email protected]> | ||||
| * | s/ProtocolFailed/ProtocolViolation/g where possible | Neel Chauhan | 2023-04-08 | 1 | -1/+1 |
| | | |||||
| * | Use ErrorReport for errors in error! in tor-chanmgr | Ian Jackson | 2023-01-30 | 1 | -2/+3 |
| | | |||||
| * | Use ErrorReport for errors in warn! in tor-chanmgr | Ian Jackson | 2023-01-30 | 1 | -2/+2 |
| | | |||||
| * | Errors: Mark the type of an error, for clarity | Ian Jackson | 2023-01-30 | 1 | -2/+2 |
| | | | | | | We want to call ErrorReport::report() on Errors, but this isn't an Error but only a string. | ||||
| * | Allow clippy::unchecked_duration_subtraction in tests | Nick Mathewson | 2023-01-27 | 8 | -0/+8 |
| | | | | | | This panics on error, and we're fine with a panic on misbehavior in tests. | ||||
| * | Disable clippy::unlinlined-format-args | Nick Mathewson | 2023-01-27 | 1 | -0/+1 |
| | | | | | | | | | This warning kind of snuck up on us! (See #748) For now, let's disable it. (I've cleaned it up in a couple of examples, since those are meant to be more idiomatic and user-facing.) Closes #748. | ||||
| * | chanmgr: trace-level logs when launching connections. | Nick Mathewson | 2023-01-06 | 2 | -0/+15 |
| | | | | | Based on more temporary debugging code. Yet another part of #677. | ||||
| * | test lint blocks: Add many many automatically | Ian Jackson | 2022-12-12 | 4 | -0/+33 |
| | | | | | | This is precisely the result of running the rune in maint/adhoc-add-lint-blocks. | ||||
