Skip to content

Sockets.get(peer|sock)name on closed TCPSocket segfaults #40993

Closed
@fredrikekre

Description

@fredrikekre

Could probably be an error instead?

sock.handle is a null pointer here

sock.handle, rport, raddress, rfamily)
and here
sock.handle, rport, raddress, rfamily)

Would peer = isopen(sock) ? getpeername(sock) : nothing be a safe alternative to avoid this segfault (or error if this issue is fixed)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueIndicates a good issue for first-time contributors to Julia

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions