k3s/pkg/daemons/control
Brad Davidson 11072e2516 Fix occasional "TLS handshake error" in apiserver network proxy.
We should be reading from the hijacked bufio.ReaderWriter instead of
directly from the net.Conn. There is a race condition where the
underlying http handler may consume bytes from the hijacked request
stream, if it comes in the same packet as the CONNECT header. These
bytes are left in the buffered reader, which we were not using. This was
causing us to occasionally drop a few bytes from the start of the
tunneled connection's client data stream.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2022-10-05 21:10:38 -07:00
..
deps Disable cloud-node and cloud-node-lifecycle if CCM is disabled 2022-09-30 08:17:20 -07:00
proxy Fix occasional "TLS handshake error" in apiserver network proxy. 2022-10-05 21:10:38 -07:00
server.go Disable cloud-node and cloud-node-lifecycle if CCM is disabled 2022-09-30 08:17:20 -07:00
tunnel.go Fix occasional "TLS handshake error" in apiserver network proxy. 2022-10-05 21:10:38 -07:00