forked from whitemike889/sftp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
conn: seperate io.Reader and io.WriteCloser (pkg#118)
Reading and Writing are less coupled in the sftp client and server than they may be over a traditional ReadWriter. This mirrors the full duplex / half close nature of a TCP connection. In essence conn.Reader cannot be closed locally, it can only close in response to the remote side using conn.WriteCloser.Close(), or a network error, which is effectively the same thing. Make this behaviour super clear by no longer smooshing the type into a ReadWriteCloser.
- Loading branch information
1 parent
e3fac22
commit ea1a7bc
Showing
3 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters