Re: non-blocking SocketChannel connect broken on Windows 8

2011-09-29 Thread Alan Bateman
Jeroen Frijters wrote: : It's definitely a behavior change in Windows 8 and I agree that it probably has some compatibility impact, but fundamentally I think that the OpenJDK code is wrong, unless there is documentation somewhere that claims that the socket will be bound when the async connect

RE: non-blocking SocketChannel connect broken on Windows 8

2011-09-29 Thread Jeroen Frijters
Alan Bateman wrote: > Sent: Thursday, September 29, 2011 16:30 > To: Jeroen Frijters > Cc: net-dev@openjdk.java.net > Subject: Re: non-blocking SocketChannel connect broken on Windows 8 > > Jeroen Frijters wrote: > > Hi, > > > > While t

Re: non-blocking SocketChannel connect broken on Windows 8

2011-09-29 Thread Alan Bateman
Jeroen Frijters wrote: Hi, While testing on Windows 8 I found a bug in SocketChannelImpl.connect() when configured non-blocking. Here's repro: import java.net.*; import java.nio.channels.*; public class test { public static void main(String[] args) throws Exception { SocketChannel sc

non-blocking SocketChannel connect broken on Windows 8

2011-09-29 Thread Jeroen Frijters
Hi, While testing on Windows 8 I found a bug in SocketChannelImpl.connect() when configured non-blocking. Here's repro: import java.net.*; import java.nio.channels.*; public class test { public static void main(String[] args) throws Exception { SocketChannel sc = SocketChannel.open();