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

x/sys/unix: Adding GetsockoptLinger() and GetsockoptTimeval() #24515

Closed
lyuxuan opened this issue Mar 24, 2018 · 3 comments
Closed

x/sys/unix: Adding GetsockoptLinger() and GetsockoptTimeval() #24515

lyuxuan opened this issue Mar 24, 2018 · 3 comments
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@lyuxuan
Copy link

lyuxuan commented Mar 24, 2018

Currently, in the x/sys/unix package, there are SetsockoptLinger() and SetsockoptTimeval() for setting the Linger and Timeout options, however, there is no corresponding getter for them.

Due to the lack of getters, there's no viable way to get those socket options (i.e. linger and timeout), unless doing syscalls myself, which is not preferable.

@namusyaka namusyaka changed the title Adding GetsockoptLinger() and GetsockoptTimeval() to /x/sys proposal: x/sys/unix: Adding GetsockoptLinger() and GetsockoptTimeval() Mar 25, 2018
@gopherbot gopherbot added this to the Proposal milestone Mar 25, 2018
@namusyaka
Copy link
Member

/cc @ianlancetaylor

@tklauser
Copy link
Member

I don't think this needs to be a proposal, especially since it is concerning x/sys/unix. Feel free to send a CL adding these two functions.

@tklauser tklauser added the NeedsFix The path to resolution is known, but the work has not been done. label Mar 26, 2018
@tklauser tklauser changed the title proposal: x/sys/unix: Adding GetsockoptLinger() and GetsockoptTimeval() x/sys/unix: Adding GetsockoptLinger() and GetsockoptTimeval() Mar 26, 2018
@tklauser tklauser removed the Proposal label Mar 26, 2018
@tklauser tklauser modified the milestones: Proposal, Unplanned, Unreleased Mar 26, 2018
@gopherbot
Copy link

Change https://golang.org/cl/102515 mentions this issue: unix: add GetsockoptLinger and GetsockoptTimeval

@golang golang locked and limited conversation to collaborators Mar 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

4 participants