Stream: git-wasmtime

Topic: wasmtime / PR #14987 wasi-sockets: Don't report a TCP inp...


view this post on Zulip Wasmtime GitHub notifications bot (Oct 25 2026 at 15:19):

libsmol opened PR #14987 from libsmol:tcp-read-readiness to bytecodealliance:main:

Fixes #14986.

TcpReceiveStream::poll_ready returned tokio's cached read readiness, which tokio only clears once an operation returns WouldBlock. Right after a connection is set up that readiness can already be set although nothing has been received, so a WASIp2 TCP input stream could report ready before any data arrived (details in the issue).

This makes poll_ready peek a single byte instead. poll_peek waits for data, the end of the stream or an error, and when there's nothing to read it clears tokio's readiness and registers the waker as before. poll_read is unchanged.

Testing


This pull request was prepared by an AI coding assistant (Claude Code, running Anthropic's Claude Opus 5.5) on behalf of the libsmol project. We've tested it as described above, but we're happy to rework it if you'd prefer a different approach.

:robot: Generated with Claude Code

view this post on Zulip Wasmtime GitHub notifications bot (Oct 25 2026 at 15:19):

libsmol removed the review request for wasmtime-wasi-reviewers from PR #14987.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 25 2026 at 15:19):

libsmol requested wasmtime-wasi-reviewers for a review on PR #14987.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 25 2026 at 15:19):

libsmol requested rvolosatovs for a review on PR #14987.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 25 2026 at 15:19):

libsmol removed the review request for wasmtime-core-reviewers from PR #14987.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 25 2026 at 15:19):

libsmol requested cfallin for a review on PR #14987.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 25 2026 at 15:19):

libsmol requested wasmtime-core-reviewers for a review on PR #14987.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 25 2026 at 15:32):

tschneidereit commented on PR #14987:

Closing this for the same reason as the issue it's meant to close.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 25 2026 at 15:32):

:cross_mark: tschneidereit closed without merge PR #14987.


Last updated: Oct 31 2026 at 23:03 UTC