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.
If the connection provided to sftp.NewServer is closed, Serve returns the io.EOF error verbatim from io.Reader.Read. This is an odd error since this is an expected situation, so we manually ignore io.EOF. This is somewhat buggy since the sftp package itself incorrectly reports io.EOF in cases where it should actually be reporting io.ErrUnexpectedEOF. See https://github.com/pkg/sftp/pull/554 which patches Serve to return nil on clean closes and fixes buggy uses of io.ReadFull. Fixes #8592 Signed-off-by: Joe Tsai <joetsai@digital-static.net> |
3 years ago | |
|---|---|---|
| .. | ||
| incubator.go | 3 years ago | |
| incubator_linux.go | 3 years ago | |
| privs_test.go | 3 years ago | |
| tailssh.go | 3 years ago | |
| tailssh_test.go | 3 years ago | |
| user.go | 3 years ago | |