Failed writes will terminate the Conn, and while this will terminate all sessions/links, it happens asynchronously so it's not always clear which API call actually failed.
In addition, we should use the context's deadline, when available, as the write timeout.
Failed writes will terminate the Conn, and while this will terminate all sessions/links, it happens asynchronously so it's not always clear which API call actually failed.
In addition, we should use the context's deadline, when available, as the write timeout.