macovedj opened PR #14501 from macovedj:wasi-http-error-classification to bytecodealliance:main:
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
rustixfor unsupported-address-family errors, but happy to remove if the dependency addition isn't desirable.
macovedj requested pchickey for a review on PR #14501.
macovedj requested wasmtime-wasi-reviewers for a review on PR #14501.
macovedj requested alexcrichton for a review on PR #14501.
macovedj requested wasmtime-default-reviewers for a review on PR #14501.
:memo: alexcrichton submitted PR review.
:speech_balloon: alexcrichton created PR review comment:
Could this fall back to
ConnectionRefused? I'm a bit wary to stringify errors here since that seems like it could be pretty performance sensitive.
:speech_balloon: alexcrichton created PR review comment:
I think it's ok to probably just drop tests for this change, it's pretty brittle to test this IMO
:speech_balloon: alexcrichton created PR review comment:
Given that this doesn't add much over
alert_id, could this beNonefor now unless a guest ends up needing specific access later?
macovedj updated PR #14501.
:thumbs_up: alexcrichton submitted PR review.
alexcrichton added PR #14501 classify default connect and TLS errors to the merge queue.
:check: alexcrichton merged PR #14501.
alexcrichton removed PR #14501 classify default connect and TLS errors from the merge queue.
Last updated: Oct 11 2026 at 02:20 UTC