Skip to content

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

@lyuxuan

Description

@lyuxuan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions