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

Add sendTimeout and recvTimeout to Socket #50999

Open
Bungeefan opened this issue Jan 12, 2023 · 0 comments
Open

Add sendTimeout and recvTimeout to Socket #50999

Bungeefan opened this issue Jan 12, 2023 · 0 comments
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. library-io type-enhancement A request for a change that isn't a bug

Comments

@Bungeefan
Copy link

Bungeefan commented Jan 12, 2023

Taking a brief look, I think the approach we should consider is wiring up sendTimeout and recvTimeout named arguments to connect (on Socket) and bind (on ServerSocket for sockets we get back from accept) to setsockopt with SO_RCVTIMEO and SO_SNDTIMEO.

If there's demand for it going forward, we can consider providing a more general API for accessing socket options.

Originally posted by @zanderso in #19120 (comment)

@lrhn lrhn added area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. library-io type-enhancement A request for a change that isn't a bug labels Jan 12, 2023
@lrhn lrhn added area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. and removed area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. labels Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. library-io type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

2 participants