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

getsockopt, setsockopt doesn't implement SO_RCVTIMEO,SO_SNDTIMEO for wasi:socket handles #539

Open
pavelsavara opened this issue Sep 20, 2024 · 2 comments

Comments

@pavelsavara
Copy link

case SO_RCVTIMEO: // TODO wasi-sockets: emulate in wasi-libc itself
case SO_SNDTIMEO: // TODO wasi-sockets: emulate in wasi-libc itself
default:
errno = ENOPROTOOPT;
return -1;
}
break;

@abrown
Copy link
Collaborator

abrown commented Sep 20, 2024

cc: @badeend, @dicej

@badeend
Copy link
Contributor

badeend commented Sep 25, 2024

My suggestion is to keep track of the configured timeout values in wasi-libc and update the sendto & recvfrom implementations to take them into account where they're currently calling poll_method_pollable_block

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

No branches or pull requests

3 participants