naiveproxy/src/net
klzgrad d20dc7cdee socket: Force tunneling for all sockets
After the upstream large refactor, now only WebSocket sockets
have tunneling via HTTP/1 proxies. "Raw" sockets in the normal
socket pool don't have tunneling via HTTP/1 proxies, i.e.
CONNECT headers are not sent, instead the raw payload is sent
as-is to the HTTP/1 proxy, which makes it not work.

For the reference the official code does 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.

We want the normal pool because the WS pool has some extra
restrictions but we also want tunneling to expose a client socket
with the proxy built in.

Therefore we can force tunneling for all sockets. This will always
send CONNECT headers first and thus break HTTP client sockets via
HTTP/1 proxies, but since we don't use this combination this is ok.
2021-01-20 19:48:05 +08:00
..
android Import chromium-88.0.4324.96 2021-01-20 19:40:16 +08:00
base build: Remove icu 2021-01-20 19:40:17 +08:00
cert Import chromium-88.0.4324.96 2021-01-20 19:40:16 +08:00
cert_net Import chromium-88.0.4324.96 2021-01-20 19:40:16 +08:00
cookies Import chromium-88.0.4324.96 2021-01-20 19:40:16 +08:00
data Import chromium-88.0.4324.96 2021-01-20 19:40:16 +08:00
der Import chromium-88.0.4324.96 2021-01-20 19:40:16 +08:00
disk_cache Import chromium-88.0.4324.96 2021-01-20 19:40:16 +08:00
dns Import chromium-88.0.4324.96 2021-01-20 19:40:16 +08:00
docs Import chromium-88.0.4324.96 2021-01-20 19:40:16 +08:00
extras Import chromium-88.0.4324.96 2021-01-20 19:40:16 +08:00
filter Import chromium-88.0.4324.96 2021-01-20 19:40:16 +08:00
ftp Import chromium-88.0.4324.96 2021-01-20 19:40:16 +08:00
http Import chromium-88.0.4324.96 2021-01-20 19:40:16 +08:00
http2/platform/impl Import chromium-88.0.4324.96 2021-01-20 19:40:16 +08:00
log Import chromium-88.0.4324.96 2021-01-20 19:40:16 +08:00
network_error_logging Import chromium-88.0.4324.96 2021-01-20 19:40:16 +08:00
nqe Import chromium-88.0.4324.96 2021-01-20 19:40:16 +08:00
ntlm Import chromium-88.0.4324.96 2021-01-20 19:40:16 +08:00
proxy_resolution Import chromium-88.0.4324.96 2021-01-20 19:40:16 +08:00
quic Import chromium-88.0.4324.96 2021-01-20 19:40:16 +08:00
quiche/common/platform/impl Import chromium-88.0.4324.96 2021-01-20 19:40:16 +08:00
reporting Import chromium-88.0.4324.96 2021-01-20 19:40:16 +08:00
server Import chromium-88.0.4324.96 2021-01-20 19:40:16 +08:00
socket socket: Force tunneling for all sockets 2021-01-20 19:48:05 +08:00
spdy Import chromium-88.0.4324.96 2021-01-20 19:40:16 +08:00
ssl Import chromium-88.0.4324.96 2021-01-20 19:40:16 +08:00
test Import chromium-88.0.4324.96 2021-01-20 19:40:16 +08:00
third_party Import chromium-88.0.4324.96 2021-01-20 19:40:16 +08:00
tools Import chromium-88.0.4324.96 2021-01-20 19:40:16 +08:00
traffic_annotation Import chromium-88.0.4324.96 2021-01-20 19:40:16 +08:00
url_request Import chromium-88.0.4324.96 2021-01-20 19:40:16 +08:00
websockets Import chromium-88.0.4324.96 2021-01-20 19:40:16 +08:00
BUILD.gn base: Disable trace event 2021-01-20 19:48:03 +08:00
DEPS Import chromium-88.0.4324.96 2021-01-20 19:40:16 +08:00
DIR_METADATA Import chromium-88.0.4324.96 2021-01-20 19:40:16 +08:00
features.gni Import chromium-88.0.4324.96 2021-01-20 19:40:16 +08:00
OWNERS Import chromium-88.0.4324.96 2021-01-20 19:40:16 +08:00
README.md Import chromium-88.0.4324.96 2021-01-20 19:40:16 +08:00

Chrome Networking Stack

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