Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wasmtime: default to blocking sockets #5633

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rvolosatovs
Copy link
Member

This commit is a follow-up on f81a663, (#3729)
in which pre-opened socket support was added, but sockets opened by
wasmtime were made to default to non-blocking mode and pre-opened
sockets passed to wasmtime via listenfd were explicitly set to
non-blocking mode.

Avoid explicitly setting the mode and use OS default mode in the
former case or whichever mode was pre-configured in the latter.

Note, that Windows, POSIX and Berkeley sockets are blocking by default.

@yamt
Copy link

yamt commented Jun 13, 2023

what's the status of this?

This commit is a follow-up on f81a663,
in which pre-opened socket support was added, but sockets opened by
wasmtime were made to default to non-blocking mode and pre-opened
sockets passed to wasmtime via `listenfd` were explicitly set to
non-blocking mode.

Avoid explicitly setting the mode and use OS default mode in the
former case or whichever mode was pre-configured in the latter.

Note, that Windows, POSIX and Berkeley sockets are blocking by default.

Signed-off-by: Roman Volosatovs <roman@profian.com>
@rvolosatovs rvolosatovs requested a review from a team as a code owner December 20, 2023 12:32
@rvolosatovs rvolosatovs requested review from fitzgen and removed request for a team December 20, 2023 12:32
@fitzgen fitzgen requested review from pchickey and removed request for fitzgen December 20, 2023 18:54
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