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

http2: provide an error callback and "trace it" #12179

Closed
wants to merge 3 commits into from

Conversation

bagder
Copy link
Member

@bagder bagder commented Oct 22, 2023

Getting nghttp2's error message into the trace output helps a user understand what's going on. For example when the connection is brought down due a forbidden header is used - as that header is then not displayed by curl itself.

Example:

  • [HTTP/2] Error: Invalid HTTP header field was received: frame type: 1,
    stream: 1, name: [upgrade], value: [h2,h2c]

Ref: #12172

@bagder bagder added the HTTP/2 label Oct 22, 2023
@bagder bagder requested a review from icing October 22, 2023 09:24
@github-actions github-actions bot added the HTTP label Oct 22, 2023
lib/http2.c Outdated Show resolved Hide resolved
Getting nghttp2's error message into the trace output helps a user
understand what's going on. For example when the connection is brought
down due a forbidden header is used - as that header is then not
displayed by curl itself.

Example:

 * [HTTP/2] Error: Invalid HTTP header field was received: frame type: 1,
   stream: 1, name: [upgrade], value: [h2,h2c]

Ref: #12172
Closes #12179
@bagder bagder force-pushed the bagder/http2-error-callback branch from c42abdd to e6cfcd3 Compare October 23, 2023 08:21
@icing icing self-requested a review October 23, 2023 08:22
@bagder bagder closed this in 19a82c1 Oct 23, 2023
@bagder bagder deleted the bagder/http2-error-callback branch October 23, 2023 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants