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

Log http2: stream closed as debug-level #151

Merged
merged 1 commit into from
May 9, 2022

Conversation

milesbxf
Copy link
Contributor

@milesbxf milesbxf commented May 9, 2022

We had some internal reports of services logging warnings like "Couldn't send response body", with the underlying error being "http2: stream closed".

These errors occur as a result of the client closing the stream as we're still writing to it, which is a frequent and expected part of HTTP/2 operation, so we can safely log these at debug level.

These errors occur as a result of the client closing the stream as we're still writing to it, which is a frequent and expected part of HTTP/2 operation, so we can safely log these at debug level.
Copy link

@domgoodwin domgoodwin left a comment

Choose a reason for hiding this comment

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

LGTM 🚀
Are there any other potential messages we need to add to this list for http2?

@milesbxf
Copy link
Contributor Author

milesbxf commented May 9, 2022

LGTM 🚀 Are there any other potential messages we need to add to this list for http2?

I don't think so off the top of my head - we can always come back and add them later

@milesbxf milesbxf merged commit 6273fac into master May 9, 2022
@milesbxf milesbxf deleted the log-http2-stream-closed-at-debug branch May 9, 2022 16:02
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