8000 socket.IP{,V6}_RECVERR not exposed · Issue #118986 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content
socket.IP{,V6}_RECVERR not exposed #118986
Open
@chrysn

Description

@chrysn

Feature or enhancement

Proposal:

The IPV6_RECVERR socket option, which is needed to make good use of the MSG_ERRQUEUE recvmsg flag, is not exposed through socket, just through the private IN module.

sock.setsockopt(socket.IPPROTO_IPV6, socket.IPV6_RECVERR, 1)
data, ancdata, flags, addr = my_socket.recvmsg(2048, 1024, sock.MSG_ERRQUEUE)

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

People who want to use this only find some stackoverflow post that points them to the internal IN module, which thus makes its way into production code rather than just exposing two more socket option names.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0