naiveproxy/src/net
klzgrad 0fc7b30973 net/socket: Force tunneling for all sockets
In the socket system, only WebSocket sockets are allowed to tunnel
through HTTP/1 proxies. "Raw" sockets in the normal socket pool don't
have it, and their CONNECT headers are not sent, instead the raw
payload is sent as-is to the HTTP/1 proxy, breaking the proxying.

The socket system works like this:

- HTTP sockets via HTTP/1 proxies: normal pool, no tunneling.
- HTTPS sockets via HTTP/1 proxies: normal pool, no tunneling,
  but does its own proxy encapsulation.
- WS sockets via HTTP/1 proxies: WS pool, tunneling.

In Naive, we need the normal pool because the WS pool has some extra
restrictions but we also need tunneling to produce a client socket
with proxy tunneling built in.

Therefore force tunneling for all sockets and have them always send
CONNECT headers. This will otherwise break regular HTTP client sockets
via HTTP/1 proxies, but as we don't use this combination, it is ok.
2024-11-21 19:58:39 +08:00
..
android android: net: Add Android stubs 2024-11-20 19:33:57 +08:00
base net, url: Remove icu 2024-11-21 19:58:39 +08:00
cert net/cert: Fix iwyu 2024-11-21 19:58:39 +08:00
cert_net Import chromium-131.0.6778.86 2024-11-20 19:32:56 +08:00
cookies Import chromium-131.0.6778.86 2024-11-20 19:32:56 +08:00
data/ssl/chrome_root_store Import chromium-131.0.6778.86 2024-11-20 19:32:56 +08:00
device_bound_sessions Import chromium-131.0.6778.86 2024-11-20 19:32:56 +08:00
disk_cache Import chromium-131.0.6778.86 2024-11-20 19:32:56 +08:00
dns build: Remove tests and minimize 2024-11-20 19:33:56 +08:00
docs Import chromium-131.0.6778.86 2024-11-20 19:32:56 +08:00
extras Import chromium-131.0.6778.86 2024-11-20 19:32:56 +08:00
filter Import chromium-131.0.6778.86 2024-11-20 19:32:56 +08:00
first_party_sets Import chromium-131.0.6778.86 2024-11-20 19:32:56 +08:00
http Import chromium-131.0.6778.86 2024-11-20 19:32:56 +08:00
log Import chromium-131.0.6778.86 2024-11-20 19:32:56 +08:00
network_error_logging Import chromium-131.0.6778.86 2024-11-20 19:32:56 +08:00
nqe Import chromium-131.0.6778.86 2024-11-20 19:32:56 +08:00
ntlm Import chromium-131.0.6778.86 2024-11-20 19:32:56 +08:00
proxy_resolution Import chromium-131.0.6778.86 2024-11-20 19:32:56 +08:00
quic Import chromium-131.0.6778.86 2024-11-20 19:32:56 +08:00
reporting Import chromium-131.0.6778.86 2024-11-20 19:32:56 +08:00
server Import chromium-131.0.6778.86 2024-11-20 19:32:56 +08:00
shared_dictionary Import chromium-131.0.6778.86 2024-11-20 19:32:56 +08:00
socket net/socket: Force tunneling for all sockets 2024-11-21 19:58:39 +08:00
spdy Import chromium-131.0.6778.86 2024-11-20 19:32:56 +08:00
ssl Import chromium-131.0.6778.86 2024-11-20 19:32:56 +08:00
storage_access_api Import chromium-131.0.6778.86 2024-11-20 19:32:56 +08:00
test Import chromium-131.0.6778.86 2024-11-20 19:32:56 +08:00
third_party build: Remove tests and minimize 2024-11-20 19:33:56 +08:00
tools build: Remove tests and minimize 2024-11-20 19:33:56 +08:00
traffic_annotation Import chromium-131.0.6778.86 2024-11-20 19:32:56 +08:00
url_request Import chromium-131.0.6778.86 2024-11-20 19:32:56 +08:00
websockets Import chromium-131.0.6778.86 2024-11-20 19:32:56 +08:00
BUILD.gn net/cert: Use builtin verifier on Android and Linux 2024-11-21 19:58:39 +08:00
COMMON_METADATA Import chromium-131.0.6778.86 2024-11-20 19:32:56 +08:00
DEPS Import chromium-131.0.6778.86 2024-11-20 19:32:56 +08:00
DIR_METADATA Import chromium-131.0.6778.86 2024-11-20 19:32:56 +08:00
features.gni net/cert: Use builtin verifier on Android and Linux 2024-11-21 19:58:39 +08:00
OWNERS Import chromium-131.0.6778.86 2024-11-20 19:32:56 +08:00
PRESUBMIT.py Import chromium-131.0.6778.86 2024-11-20 19:32:56 +08:00
README.md Import chromium-131.0.6778.86 2024-11-20 19:32:56 +08:00

Chrome Networking Stack

This directory contains the code behind Chrome's networking stack. It is documented here.