summaryrefslogtreecommitdiff
path: root/crates/arti/src/proxy/socks.rs
Commit message (Collapse)AuthorAgeFilesLines
* Make all TorClient constructors wrap the TorClient in an Arc.Nick Mathewson2026-05-131-3/+8
| | | | | | This is part of rationalizing the structure of TorClient so we can refactor startup logic, and so that RPC code can reason about object identity. See #2469.
* Log socks isolationJim Newsome2026-04-081-0/+1
|
* arti: Add an option to disable http_connect.Nick Mathewson2026-03-251-1/+0
| | | | | | | | | This option affects all socks listeners, because: - We don't have a convenient way to associate an option with each port. - The main purpose of having this option is as a switch in case we discover a major problem with this code.
* Fix word duplicate typosTobias Stoeckmann2026-03-151-1/+1
|
* Replace copy_interactive with futures-copy.Nick Mathewson2025-10-301-13/+11
| | | | | | | | This change lets us avoid spawning extra tasks (due to one-direction nature of copy_interactive), and avoid some lock contention (due to use of AsyncReadExt::split). Addresses part of #786.
* arti: Remove now-needless cognitive_complexity exceptionsNick Mathewson2025-10-281-1/+0
| | | | | | | Apparently the http_connect refactoring made these no longer trigger. Closes #2226
* http_connect: Provide better status codes for ErrorKinds.Nick Mathewson2025-10-281-0/+2
|
* arti: Detect proxy protocol _before_ starting SOCKS.Nick Mathewson2025-10-281-23/+9
| | | | | This will let us speak HTTP CONNECT as well; there is a stub for initiating an http proxy.
* arti: Pass a buffered stream to handle_socks_connNick Mathewson2025-10-281-2/+11
| | | | This will let us implement bilingual HTTP proxies.
* arti: Renaming around socks/generic proxiesNick Mathewson2025-10-281-10/+10
| | | | This is _all_ renaming and comment adjustments.
* arti: Split socks-specific parts out of handle_socks_connNick Mathewson2025-10-281-0/+463
We want to abstract every part of this code that knows that it's speaking SOCKS, so that we can in turn add a new proxy type. Note that several methods and types here have names that are no longer appropriate for their functionality. I'll revise those in a later commit.