Closed szmcdull closed 1 year ago
While it doesn't pay attention to the number of bytes written it will return an error, which will allow the connection to be cleaned up as needed. This is the only thing it can do as it wouldn't be safe to continue after the error.
buffio.Write may write less bytes than requested. But conn.writeXXX is not aware of this