Skip to content

classify default connect and TLS errors - #14501

Merged
alexcrichton merged 2 commits into
bytecodealliance:mainfrom
macovedj:wasi-http-error-classification
Oct 4, 2026
Merged

alexcrichton merged 2 commits into
bytecodealliance:mainfrom
macovedj:wasi-http-error-classification

Conversation

@macovedj

@macovedj macovedj commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

This PR distinguishes refused, unavailable, timed-out, and terminated connections in the p2 and p3 default hooks. It also preserve certificate and TLS alert details when the default request implementation is enabled.

I used rustix for unsupported-address-family errors, but happy to remove if the dependency addition isn't desirable.

Distinguish refused, unavailable, timed-out, and terminated connections in
the p2 and p3 default hooks. Preserve certificate and TLS alert details
when the default request implementation is enabled.

Use rustix for unsupported-address-family errors and add focused tests
for both HTTP versions.
@macovedj
macovedj requested review from a team as code owners October 2, 2026 20:32
@macovedj
macovedj requested review from alexcrichton and pchickey and removed request for a team October 2, 2026 20:32
Comment thread crates/wasi-http/src/ctx_tests.rs Outdated
Comment thread crates/wasi-http/src/ctx.rs Outdated
Comment thread crates/wasi-http/src/ctx.rs Outdated
@alexcrichton
alexcrichton added this pull request to the merge queue Oct 4, 2026
Merged via the queue into bytecodealliance:main with commit 41ea415 Oct 4, 2026
53 checks passed
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