Opened 3 years ago

Last modified 2 years ago

#20353 new defect

evutil_ersatz_socketpair: use AF_INET6 if AF_INET bind fails

Reported by: nickm Owned by:
Priority: Very Low Milestone: Tor: unspecified
Component: Core Tor/Tor Version:
Severity: Trivial Keywords: tor-client maybe-pointless easy
Cc: Actual Points:
Parent ID: Points: .5
Reviewer: Sponsor:


Apparently there are systems where you can bind to ::1, but you can't bind to On these systems, evutil_ersatz_socketpair doesn't work right -- it only falls back to IPv6 when it fails to create an AF_INET socket.

I'm calling this a very low priority bug, since evutil_ersatz_socketpair is only used on Windows, and (as far as I know) binding should always work on Windows.

Child Tickets

Change History (1)

comment:1 Changed 2 years ago by nickm

Keywords: tor-client maybe-pointless easy added
Note: See TracTickets for help on using tickets.