WebAssembly / WebAssembly/WASI
Specify what happens when IPv6 is unavailable
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 5.8k
- Forks
- 333
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 3
Description
Consider the URL with https://[::1]/. The scheme is https, the authority is the IPv6 literal [::1], and the path-and-query is /. Wasmtime currently fails to set [::1] as an authority. I guess this is a lack of IPv6, though cc @lann for input.
Anyway let's consider that it's OK to not support IPv6. When should an error occur?
MHO: when a request is actually handled. This would be consistent with the language in the WIT:
/// It is possible to construct, or manipulate with the accessor functions
/// below, a `request` with an invalid combination of `scheme`
/// and `authority`, or `headers` which are not permitted to be sent.
/// It is the obligation of the `handler.handle` implementation
/// to reject invalid constructions of `request`.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read the WIT request and authority comments, especially the handler.handle contract, using the https://[::1]/ example as the case to resolve. Determine when an unavailable IPv6 authority should be rejected and document or implement the agreed behavior in the relevant Wasmtime/WASI HTTP area, with coverage showing the chosen error timing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- networking
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100