xia-chao requested fitzgen for a review on PR #14908.
xia-chao requested wasmtime-default-reviewers for a review on PR #14908.
xia-chao removed the review request for wasmtime-core-reviewers from PR #14908.
xia-chao opened PR #14908 from xia-chao:feat/serve-h2c-nodep to bytecodealliance:main:
i think this is worth filling in, because serve only speaks HTTP/1.1 today and h2c clients like grpc just get nothing back.
xia-chao requested wasmtime-core-reviewers for a review on PR #14908.
xia-chao requested dicej for a review on PR #14908.
xia-chao removed the review request for wasmtime-default-reviewers from PR #14908.
alexcrichton commented on PR #14908:
For something that's roughly intended to be a debugging-ish server this feels like
wasmtime serveis starting to sprawl quite a lot -- for example custom I/O implementations, hardcoded HTTP prefixes and such, this all feels pretty intense for what is otherwise intended to be a relatively simple wrapper aroundhyperandwasmtimetogether. Is it possible to simplify this and/or externalize the complexity? For example I see thathyper-utilhas utilities for handling either 1.1 or 2 connections, that might be appropriate?Also, is this valid? I thought that http/2 required TLS and AFAIK we don't have any configuration to have
wasmtime serveserve over TLS.
xia-chao commented on PR #14908:
i'm pretty sure h2c is valid ,rfc 9113 has prior knowledge for cleartext, http/2 doesn't need tls. ran curl --http2-prior-knowledge and got a 200.
xia-chao commented on PR #14908:
For example I see that
hyper-utilhas utilities for handling either 1.1 or 2 connections, that might be appropriate?i first tried hyper util, then went dep free (the branch name says nodep). using hyper util would probably be less code to maintain long term ok to add it?
fitzgen removed the review request for fitzgen from PR #14908.
alexcrichton commented on PR #14908:
Subjectively I'd say yeah pulling in something like hyper-util for this would be reasonable.
xia-chao updated PR #14908.
xia-chao commented on PR #14908:
switched to hyper util's auto builder and dropped the preface sniffing.
:memo: dicej submitted PR review.
:speech_balloon: dicej created PR review comment:
Would it make sense to use the
hyper_util::server::conn::auto::Builderfor both cases, conditionally callingBuilder::http1_onlyin the debug case? Seems like that would reduce duplication a bit.
xia-chao updated PR #14908.
:memo: xia-chao submitted PR review.
:speech_balloon: xia-chao created PR review comment:
auto needs a 'static service and the debug store is borrowed, so that path can't use it.
:thumbs_up: dicej submitted PR review:
Thanks, @xia-chao!
dicej added PR #14908 serve: accept HTTP/2 connections to the merge queue.
:check: dicej merged PR #14908.
dicej removed PR #14908 serve: accept HTTP/2 connections from the merge queue.
Last updated: Oct 31 2026 at 23:03 UTC