You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Specify what happens when IPv6 is unavailable #779
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`.
Do you mean that request.set-authority is failing? That would be a straightforward bug since it should only fail "if the string given is not a syntactically valid URI authority."
Activity
lann commentedon Oct 2, 2025
Do you mean that
request.set-authorityis failing? That would be a straightforward bug since it should only fail "if the string given is not a syntactically valid URI authority."wingo commentedon Oct 2, 2025
Correct,
request.set_authority(Some(&"[::1]".to_string()))fails.lann commentedon Oct 2, 2025
Looks like a plain old spec violation to me.
pchickey commentedon Oct 2, 2025
Agreed, thats a bug in wasmtime.