Open Bug 636509 Opened 13 years ago Updated 2 years ago

PR_NewTCPSocketPair is hardcoded to use IPv4 on Windows, Symbian, and OS/2

Categories

(NSPR :: NSPR, defect, P5)

All
Windows 7

Tracking

(Not tracked)

People

(Reporter: wtc, Unassigned)

References

(Depends on 1 open bug)

Details

PR_NewTCPSocketPair, used by PR_NewPollableEvent on non-Unix platforms,
is implemented with a pair of IPv4 (AF_INET) TCP sockets on non-Unix
platforms and Symbian.  On Unix PR_NewTCPSocketPair is implemented with
a Unix domain (AF_UNIX) socketpair.

This means on non-Unix platforms (such as Windows and OS/2) and Symbian,
PR_NewTCPSocketPair won't work if the computer doesn't have an IPv4
loopback interface.

The fix is to detect whether the computer has an AF_INET or AF_INET6
loopback interface and select an available address family.  This will
require the new NSPR wrapper function for getaddrinfo proposed in
bug 636504.

The bug assignee didn't login in Bugzilla in the last 7 months and this bug has priority 'P2'.
:KaiE, could you have a look please?
For more information, please visit auto_nag documentation.

Assignee: wtc → nobody
Flags: needinfo?(kaie)

Could we fix this using the new API from bug 1769293 ?

Flags: needinfo?(kaie)
Priority: P2 → P5
See Also: → 1769293
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.