Skip to content

Don’t panic when http handle function returns before invoking set#10387

Merged
alexcrichton merged 3 commits intobytecodealliance:mainfrom
primoly:ret-b4-set-2
Mar 12, 2025
Merged

Don’t panic when http handle function returns before invoking set#10387
alexcrichton merged 3 commits intobytecodealliance:mainfrom
primoly:ret-b4-set-2

Conversation

@primoly
Copy link
Copy Markdown
Contributor

@primoly primoly commented Mar 12, 2025

wasmtime serve currently presumes that a failure to call response-outparam::set inside handle means the component trapped. But it can also happen by returning before invoking set. This PR accommodates for that.

Redo of #10256

@primoly primoly requested a review from a team as a code owner March 12, 2025 18:21
@primoly primoly requested review from alexcrichton and removed request for a team March 12, 2025 18:21
@alexcrichton alexcrichton added this pull request to the merge queue Mar 12, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 12, 2025
@alexcrichton alexcrichton added this pull request to the merge queue Mar 12, 2025
Merged via the queue into bytecodealliance:main with commit ad21d95 Mar 12, 2025
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants