naiveproxy/src/net
klzgrad ca01c27db9 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.
2022-12-03 16:22:08 +08:00
..
android net: Add Android stubs 2022-12-03 16:13:10 +08:00
base net, url: Remove icu 2022-12-03 16:13:10 +08:00
cert cert: Handle AIA response in PKCS#7 format 2022-12-03 16:22:08 +08:00
cert_net Import chromium-108.0.5359.94 2022-12-03 16:11:17 +08:00
cookies Import chromium-108.0.5359.94 2022-12-03 16:11:17 +08:00
data/ssl/chrome_root_store Import chromium-108.0.5359.94 2022-12-03 16:11:17 +08:00
der Import chromium-108.0.5359.94 2022-12-03 16:11:17 +08:00
disk_cache Import chromium-108.0.5359.94 2022-12-03 16:11:17 +08:00
dns build: Remove tests and minimize 2022-12-03 16:13:09 +08:00
docs Import chromium-108.0.5359.94 2022-12-03 16:11:17 +08:00
extras Import chromium-108.0.5359.94 2022-12-03 16:11:17 +08:00
filter Import chromium-108.0.5359.94 2022-12-03 16:11:17 +08:00
first_party_sets Import chromium-108.0.5359.94 2022-12-03 16:11:17 +08:00
http Import chromium-108.0.5359.94 2022-12-03 16:11:17 +08:00
log Import chromium-108.0.5359.94 2022-12-03 16:11:17 +08:00
network_error_logging Import chromium-108.0.5359.94 2022-12-03 16:11:17 +08:00
nqe Import chromium-108.0.5359.94 2022-12-03 16:11:17 +08:00
ntlm Import chromium-108.0.5359.94 2022-12-03 16:11:17 +08:00
proxy_resolution Import chromium-108.0.5359.94 2022-12-03 16:11:17 +08:00
quic Import chromium-108.0.5359.94 2022-12-03 16:11:17 +08:00
reporting Import chromium-108.0.5359.94 2022-12-03 16:11:17 +08:00
server Import chromium-108.0.5359.94 2022-12-03 16:11:17 +08:00
socket socket: Force tunneling for all sockets 2022-12-03 16:22:08 +08:00
spdy Import chromium-108.0.5359.94 2022-12-03 16:11:17 +08:00
ssl Import chromium-108.0.5359.94 2022-12-03 16:11:17 +08:00
test Import chromium-108.0.5359.94 2022-12-03 16:11:17 +08:00
third_party build: Remove tests and minimize 2022-12-03 16:13:09 +08:00
tools build: Remove tests and minimize 2022-12-03 16:13:09 +08:00
traffic_annotation Import chromium-108.0.5359.94 2022-12-03 16:11:17 +08:00
url_request Import chromium-108.0.5359.94 2022-12-03 16:11:17 +08:00
websockets Import chromium-108.0.5359.94 2022-12-03 16:11:17 +08:00
BUILD.gn cert: Use builtin verifier on Android and Linux 2022-12-03 16:22:06 +08:00
COMMON_METADATA Import chromium-108.0.5359.94 2022-12-03 16:11:17 +08:00
DEPS Import chromium-108.0.5359.94 2022-12-03 16:11:17 +08:00
DIR_METADATA Import chromium-108.0.5359.94 2022-12-03 16:11:17 +08:00
features.gni Import chromium-108.0.5359.94 2022-12-03 16:11:17 +08:00
OWNERS Import chromium-108.0.5359.94 2022-12-03 16:11:17 +08:00
README.md Import chromium-108.0.5359.94 2022-12-03 16:11:17 +08:00

Chrome Networking Stack

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