Skip to content

Only report erorrs not EOF since this is expected when the SSH session ends#1492

Merged
pascalbreuninger merged 1 commit intoloft-sh:mainfrom
bkneis:feature/fix-eof-handling
Dec 19, 2024
Merged

Only report erorrs not EOF since this is expected when the SSH session ends#1492
pascalbreuninger merged 1 commit intoloft-sh:mainfrom
bkneis:feature/fix-eof-handling

Conversation

@bkneis
Copy link
Copy Markdown
Contributor

@bkneis bkneis commented Dec 19, 2024

Currently when you end a SSH session that has port forwarding or reverse forwarding an error is printed superfluously. The underlying EOF error is expected since the sessions was closed so it should not be reported. This was confusing an OSS user and when using reverse forward it's printed locally and makes it seem the command failed. This PR fixes it by checking if it is EOF

e.g.

07:15:03 error error forwarding /run/user/1000/gnupg/S.gpg-agent.extra: EOF

@bkneis bkneis requested a review from a team December 19, 2024 07:52
@pascalbreuninger pascalbreuninger merged commit af5b78b into loft-sh:main Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants