• Brad Davidson's avatar
    Fix occasional "TLS handshake error" in apiserver network proxy. · 11072e25
    Brad Davidson authored
    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: 's avatarBrad Davidson <brad.davidson@rancher.com>
    11072e25
Name
Last commit
Last update
..
proxy.go Loading commit data...