generated from WebAssembly/wasi-proposal-template
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Why is set-listen-backlog-size
a function?
#34
Comments
Although not part of the official POSIX documentation, many implementations allow
Splitting out these concerns into distinct functions simplifies the WASI interface.
|
Cool, thanks! |
badeend
added a commit
to badeend/wasi-sockets
that referenced
this issue
Sep 10, 2023
- Document reasoning behind `listen-backlog-size` in the repository itself. As opposed to just in issue WebAssembly#34 - Change type from u64 to u32, since that's what all OS'es use. - Add getter. This shouldn't require any additional overhead from implementations, because they already need to keep track of the value (see README). Also, there is precedent for it (SO_LISTENQLIMIT)
badeend
added a commit
to badeend/wasi-sockets
that referenced
this issue
Sep 10, 2023
- Document reasoning behind `listen-backlog-size` in the repository itself. As opposed to just in issue WebAssembly#34 - Change type from u64 to u32, since that's what all OS'es use. - Add getter for symmetry with other socket options. This shouldn't require any additional overhead from implementations, because they already need to somehow keep track of the value (see README). Also, there is precedent for it (SO_LISTENQLIMIT)
This was referenced Sep 10, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I understand correctly,
set-listen-backlog-size
corresponds to the backlog parameter in thelisten
function in POSIX. I'm curious why it's a function here instead of being a listen parameter.The text was updated successfully, but these errors were encountered: