Skip to content

Implement SO_ERROR for sockets #1373

Open

Description

@mkroening

This SO_ERROR is commonly used to check sockets for errors, for example on non-blocking connect calls.

getsockopt(sockfd, SOL_SOCKET, SO_ERROR, ...);

This is exposed in Rust as TcpStream::take_error, TcpListener::take_error, and UdpSocket::take_error via the currently not implemented std::sys::pal::hermit::net::Socket::take_error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions