Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

bkneis
Copy link
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
15 of 23 checks passed
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