Skip to content

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

Closed
bagder wants to merge 3 commits into
masterfrom
bagder/http2-error-callback
Closed

http2: provide an error callback and "trace it"#12179
bagder wants to merge 3 commits into
masterfrom
bagder/http2-error-callback

Conversation

@bagder

@bagder bagder commented Oct 22, 2023

Copy link
Copy Markdown
Member

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
Comment thread lib/http2.c Outdated
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.

2 participants