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

Capture and log errors when writing errors #67

Merged
merged 2 commits into from
Mar 7, 2024

Conversation

moio
Copy link
Contributor

@moio moio commented Feb 22, 2024

Previous code silently discarded an error which could result in goroutines/memory leaks (when Error messages are not delivered, the receiver might never Close() the readbuffer on its end.

Found during investigations in rancher/rancher#44576 internal reference SURE-7122.

Signed-off-by: Silvio Moioli <silvio@moioli.net>
@tomleb tomleb self-requested a review February 22, 2024 16:42
Copy link
Contributor

@tomleb tomleb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

connection.go Outdated Show resolved Hide resolved
Co-authored-by: Tom Lebreux <me@tomlebreux.com>
@moio
Copy link
Contributor Author

moio commented Mar 5, 2024

@maxsokolovsky picked your name rather randomly from Frameworks engineers - if somebody else is preferable please let me know.

Thanks in advance

@moio
Copy link
Contributor Author

moio commented Mar 7, 2024

@tomleb can you merge please?

@tomleb tomleb merged commit ceb54d8 into rancher:master Mar 7, 2024
@moio moio deleted the write_err_logging branch March 8, 2024 09:23
aruiz14 pushed a commit to aruiz14/remotedialer that referenced this pull request Jun 13, 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.

None yet

3 participants