Skip to content

Add a missing drop-readable call#786

Merged
alexcrichton merged 2 commits into
WebAssembly:mainfrom
alexcrichton:drop-readable
Apr 21, 2026
Merged

Add a missing drop-readable call#786
alexcrichton merged 2 commits into
WebAssembly:mainfrom
alexcrichton:drop-readable

Conversation

@alexcrichton

Copy link
Copy Markdown
Collaborator

I'm not sure how to add a test for this so the fix here is just in isolation.

I'm not sure how to add a test for this so the fix here is just in
isolation.
@alexcrichton alexcrichton requested a review from dicej April 21, 2026 01:39
__wasilibc_future_block_on(sockets_future_result_void_error_code_read(
state->receive_result, &result),
state->receive_result);
sockets_future_result_void_error_code_drop_readable(state->receive_result);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe also take a look at tcp_write_eof

@alexcrichton alexcrichton enabled auto-merge (squash) April 21, 2026 14:39
@alexcrichton

Copy link
Copy Markdown
Collaborator Author

If this becomes too much of a problem in the future, too, I might take a look at enabling a mode of the CLI to assert that all handles are closed by the time main exits and add support to wasi-libc for that.

@alexcrichton alexcrichton merged commit a16b32f into WebAssembly:main Apr 21, 2026
33 checks passed
@alexcrichton alexcrichton deleted the drop-readable branch April 21, 2026 14:45
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.

3 participants