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

Add a message for EOF-related broken pipe errors #615

Merged
merged 1 commit into from Feb 22, 2023

Conversation

nox
Copy link
Contributor

@nox nox commented May 12, 2022

It's quite confusing from production logs when all I get is "broken pipe" and I don't know which path was taken for that error to be logged.

@nox nox force-pushed the broken-pipe-messages branch 3 times, most recently from 9304876 to 8b1f01b Compare May 12, 2022 14:29
@nox
Copy link
Contributor Author

nox commented Feb 14, 2023

@seanmonstar Can I get a review pls?

@nox nox force-pushed the broken-pipe-messages branch 2 times, most recently from bcf1724 to 0af2c67 Compare February 14, 2023 08:47
Copy link
Member

@LucioFranco LucioFranco left a comment

Choose a reason for hiding this comment

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

LGTM

self.inner = Closed(Cause::Error(
io::Error::new(
io::ErrorKind::BrokenPipe,
"stream closed because of broken pipe",
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't it be because of a broken pipe?

@nox
Copy link
Contributor Author

nox commented Feb 17, 2023

@seanmonstar 🥺

What would be the best error message here?

@LucioFranco
Copy link
Member

Ci Failing?

It's quite confusing from production logs when all I get is
"broken pipe" and I don't know which path was taken for that error
to be logged.
@seanmonstar seanmonstar merged commit 96caf4f into master Feb 22, 2023
@seanmonstar seanmonstar deleted the broken-pipe-messages branch February 22, 2023 16:09
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