Skip to content

Commit 7303d09

Browse files
authored
Merge pull request #53 from balena-io/ignore-eof
do not pass EOF errors to handler
2 parents 734c64b + c8b3030 commit 7303d09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: sshproxy.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func New(keyDir, shell string, passEnv bool, shellCreds *syscall.Credential, ver
8181
}
8282

8383
func (s *Server) handleError(err error, tags map[string]string) {
84-
if s.errorHandler != nil {
84+
if s.errorHandler != nil && err.Error() != "EOF" {
8585
s.errorHandler(err, tags)
8686
}
8787
}

0 commit comments

Comments
 (0)