naiveproxy/src/net
klzgrad 3d3f835d9c 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.
2020-02-05 22:06:50 +08:00
..
android Import chromium-80.0.3987.87 2020-02-05 22:06:49 +08:00
base build: Remove icu 2020-02-05 22:06:50 +08:00
cert Import chromium-80.0.3987.87 2020-02-05 22:06:49 +08:00
cert_net Import chromium-80.0.3987.87 2020-02-05 22:06:49 +08:00
cookies Import chromium-80.0.3987.87 2020-02-05 22:06:49 +08:00
data Import chromium-80.0.3987.87 2020-02-05 22:06:49 +08:00
der Import chromium-80.0.3987.87 2020-02-05 22:06:49 +08:00
disk_cache Import chromium-80.0.3987.87 2020-02-05 22:06:49 +08:00
dns Import chromium-80.0.3987.87 2020-02-05 22:06:49 +08:00
docs Import chromium-80.0.3987.87 2020-02-05 22:06:49 +08:00
extras Import chromium-80.0.3987.87 2020-02-05 22:06:49 +08:00
filter Import chromium-80.0.3987.87 2020-02-05 22:06:49 +08:00
ftp Import chromium-80.0.3987.87 2020-02-05 22:06:49 +08:00
http Import chromium-80.0.3987.87 2020-02-05 22:06:49 +08:00
http2/platform/impl Import chromium-80.0.3987.87 2020-02-05 22:06:49 +08:00
log Import chromium-80.0.3987.87 2020-02-05 22:06:49 +08:00
network_error_logging Import chromium-80.0.3987.87 2020-02-05 22:06:49 +08:00
nqe Import chromium-80.0.3987.87 2020-02-05 22:06:49 +08:00
ntlm Import chromium-80.0.3987.87 2020-02-05 22:06:49 +08:00
proxy_resolution Import chromium-80.0.3987.87 2020-02-05 22:06:49 +08:00
quic Import chromium-80.0.3987.87 2020-02-05 22:06:49 +08:00
quiche/common/platform/impl Import chromium-80.0.3987.87 2020-02-05 22:06:49 +08:00
reporting Import chromium-80.0.3987.87 2020-02-05 22:06:49 +08:00
server Import chromium-80.0.3987.87 2020-02-05 22:06:49 +08:00
socket socket: Force tunneling for all sockets 2020-02-05 22:06:50 +08:00
spdy Import chromium-80.0.3987.87 2020-02-05 22:06:49 +08:00
ssl Import chromium-80.0.3987.87 2020-02-05 22:06:49 +08:00
test Import chromium-80.0.3987.87 2020-02-05 22:06:49 +08:00
third_party Import chromium-80.0.3987.87 2020-02-05 22:06:49 +08:00
tools Import chromium-80.0.3987.87 2020-02-05 22:06:49 +08:00
traffic_annotation Import chromium-80.0.3987.87 2020-02-05 22:06:49 +08:00
url_request Import chromium-80.0.3987.87 2020-02-05 22:06:49 +08:00
websockets Import chromium-80.0.3987.87 2020-02-05 22:06:49 +08:00
BUILD.gn build: Remove icu 2020-02-05 22:06:50 +08:00
DEPS Import chromium-80.0.3987.87 2020-02-05 22:06:49 +08:00
features.gni Import chromium-80.0.3987.87 2020-02-05 22:06:49 +08:00
OWNERS Import chromium-80.0.3987.87 2020-02-05 22:06:49 +08:00
README.md Import chromium-80.0.3987.87 2020-02-05 22:06:49 +08:00

TODO: Add network stack documentation. :)