tailscale/control/controlbase
Maisem Ali 2c89b3a601 control/controlbase: make Conn.Write return consumed bytes
Currently `Write` returns the number of ciphertext bytes written.
According to the docs for io.Writer, Write should return the amount
of bytes consumed from the input.
```
// Write writes len(p) bytes from p to the underlying data stream.
// It returns the number of bytes written from p (0 <= n <= len(p))
// and any error encountered that caused the write to stop early.
// Write must return a non-nil error if it returns n < len(p).
// Write must not modify the slice data, even temporarily.
Write(p []byte) (n int, err error)
```

Fixes #4126

Signed-off-by: Maisem Ali <maisem@tailscale.com>
2022-03-09 11:42:11 -08:00
..
conn.go control/controlbase: make Conn.Write return consumed bytes 2022-03-09 11:42:11 -08:00
conn_test.go control/controlbase: enable asynchronous client handshaking. 2022-01-17 23:52:27 +00:00
handshake.go control/controlbase: enable asynchronous client handshaking. 2022-01-17 23:52:27 +00:00
handshake_test.go control/controlbase: enable asynchronous client handshaking. 2022-01-17 23:52:27 +00:00
interop_test.go control/controlbase: enable asynchronous client handshaking. 2022-01-17 23:52:27 +00:00
messages.go control/controlbase: rename from control/noise. 2022-01-17 23:52:27 +00:00
noiseexplorer_test.go control/controlbase: rename from control/noise. 2022-01-17 23:52:27 +00:00