Re: Java & IPv6: ServerSocketChannel.open() throws SocketException

2017-09-15 Thread nyg nyg
. java:108) Here's some code to illustrate the issue: https://github.com/nyg/java-http-server I do use java.net.preferIPv4Stack=false & co. Using ServerSocketChannel works as expected when not run on OpenBSD. Using ServerSocket (and listening to an IPv6 address) instead of ServerSoc

Java & IPv6: ServerSocketChannel.open() throws SocketException

2017-09-15 Thread nyg
hannelImpl.(ServerSocketChannelImpl.java:88)    at sun.nio.ch.SelectorProviderImpl.openServerSocketChannel(SelectorProviderImpl.java:56)     at java.nio.channels.ServerSocketChannel.open(ServerSocketChannel.java:108) Here's some code to illustrate the issue:    https://github.com/nyg/java-http-