8211842 IPv6_supported wrongly returns false when unix domainsocket is bound to fd 0

Bernd Eckenfels ecki at zusammenkunft.net
Thu Nov 29 18:04:41 UTC 2018


Hello,

I wonder if that conclusion „stdin = tcp4 -> disable tcp6“ is correct at all. The started program might serve a v4 connection but it still could want to do ipv6 client connections.

If somebody wants to disable v4 they can do it regularly with the System property.

Gruss
Bernd
-- 
http://bernd.eckenfels.net

Von: Michael McMahon
Gesendet: Mittwoch, 28. November 2018 17:22
An: OpenJDK Network Dev list
Betreff: RFR: 8211842 IPv6_supported wrongly returns false when unix domainsocket is bound to fd 0

Could I get the following fix reviewed please?
The fix is pretty simple, but the test a bit more involved
since the issue occurs when the JVM is launched in unusual circumstances
where its stdin,out,err are connected to a UNIX domain socket.
This occurs when java is launched by a node.js or Python script.

http://cr.openjdk.java.net/~michaelm/8211842/webrev.1/

Thanks,

Michael

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/net-dev/attachments/20181129/f58abf62/attachment.html>


More information about the net-dev mailing list