naiveproxy/src
klzgrad 2700ff4844 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-04-14 19:21:25 +08:00
..
android_webview Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
apps Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
ash Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
base Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
build build: Disable use_pangocario 2020-04-14 19:21:25 +08:00
build_overrides Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
buildtools Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
cc Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
chrome Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
chromecast Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
chromeos Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
cloud_print Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
components Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
content build: Don't depend on dri in //content/gpu 2020-04-14 19:18:56 +08:00
courgette Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
crypto Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
dbus Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
device Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
extensions Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
fuchsia Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
gin Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
google_apis Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
google_update Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
gpu Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
headless Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
ios Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
ipc Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
jingle Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
media Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
mojo Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
native_client Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
native_client_sdk/src Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
net socket: Force tunneling for all sockets 2020-04-14 19:21:25 +08:00
pdf Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
ppapi Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
printing Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
remoting Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
rlz Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
sandbox Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
services Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
skia Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
sql Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
storage Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
testing Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
third_party Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
tools Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
ui Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
url build: Remove icu 2020-04-14 19:21:25 +08:00
v8 Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
weblayer Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
.clang-format Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
.gitattributes Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
.gn Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
AUTHORS Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
BUILD.gn Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00
LICENSE Import chromium-81.0.4044.92 2020-04-14 19:18:56 +08:00