You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
3 years ago
..
conn.go control/controlbase: make Conn.Write return consumed bytes 3 years ago
conn_test.go control/controlbase: enable asynchronous client handshaking. 3 years ago
handshake.go control/controlbase: enable asynchronous client handshaking. 3 years ago
handshake_test.go control/controlbase: enable asynchronous client handshaking. 3 years ago
interop_test.go control/controlbase: enable asynchronous client handshaking. 3 years ago
messages.go control/controlbase: rename from control/noise. 3 years ago
noiseexplorer_test.go control/controlbase: rename from control/noise. 3 years ago