dicej requested alexcrichton for a review on PR #15325.
dicej requested wasmtime-core-reviewers for a review on PR #15325.
dicej opened PR #15325 from dicej:fix-14769 to bytecodealliance:main:
This addresses a condition in
wasmtime_wasi_http::handlerwhere a worker may accept new requests faster than it can deliver events to existing tasks, leading to starvation and potential resource exhaustion.The solution is to check for any ready-to-run work items in
Accessor::poll_ready_for_concurrent_calland, if any are found, returnPoll::Pending, which directswasmtime_wasi_http::handler::Worker::run_to return control to the event loop so it can drain the items before taking on new work.Fixes #14769
github-actions[bot] added the label wasmtime:api on PR #15325.
:thumbs_up: alexcrichton submitted PR review.
alexcrichton added PR #15325 check for pending work items in Accessor::poll_ready_for_concurrent_call to the merge queue
:check: alexcrichton merged PR #15325.
alexcrichton removed PR #15325 check for pending work items in Accessor::poll_ready_for_concurrent_call from the merge queue
Last updated: Nov 19 2026 at 20:05 UTC