tailscale/control/controlhttp
Brad Fitzpatrick 5e9e57ecf5 control/controlhttp: add AcceptHTTP hook to add coalesced Server->Client write
New plan for #5972. Instead of sending the public key in the clear
(from earlier unreleased 246274b8e9) where the client might have to
worry about it being dropped or tampered with and retrying, we'll
instead send it post-Noise handshake but before the HTTP/2 connection
begins.

This replaces the earlier extraHeaders hook with a different sort of
hook that allows us to combine two writes on the wire in one packet.

Updates #5972

Change-Id: I42cdf7c1859b53ca4dfa5610bd1b840c6986e09c
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2022-10-27 15:07:53 -07:00
..
client_common.go control/controlhttp: allow setting, getting Upgrade headers in Noise upgrade 2022-10-17 15:11:03 -07:00
client_js.go net/wsconn: add back custom wrapper for turning a websocket.Conn into a net.Conn 2022-10-18 15:39:32 -07:00
client.go control/controlhttp: allow setting, getting Upgrade headers in Noise upgrade 2022-10-17 15:11:03 -07:00
constants.go tailcfg, control/controlhttp, control/controlclient: add ControlDialPlan field (#5648) 2022-09-23 13:06:55 -04:00
http_test.go control/controlhttp: add AcceptHTTP hook to add coalesced Server->Client write 2022-10-27 15:07:53 -07:00
server.go control/controlhttp: add AcceptHTTP hook to add coalesced Server->Client write 2022-10-27 15:07:53 -07:00