Re: [bug] sun.nio.ch.PipeImpl uses local TCP/IP connections

2015-12-03 Thread Matthias-Christian Ott
On 03/12/15 12:35, Alan Bateman wrote: > On 03/12/2015 11:56, Matthias-Christian Ott wrote: >> : >> >> Suggested fix: >> >> sun.nio.ch.PipeImpl should use anonymous pipe. It seems that supported >> versions of Microsoft Windows can create millions of handl

[bug] sun.nio.ch.PipeImpl uses local TCP/IP connections

2015-12-03 Thread Matthias-Christian Ott
Expected behaviour: sun.nio.ch.PipeImpl uses anonymous pipes, i.e. CreatePipe and related functions, to create pipes on Microsoft Windows. Actual behaviour: sun.nio.ch.PipeImpl loopback TCP/IP connections to create pipes. Therefore the number of pipes is less or equal to the size of the dynamic

[bug] sun.nio.ch.PipeImpl uses IPv4

2015-12-03 Thread Matthias-Christian Ott
Expected behaviour: If you assume that sun.nio.ch.PipeImpl communicates over local TCP/IP sockets, PipeImpl should open a socket on and connect to over localhost. Actual behaviour: sun.nio.ch.PipeImpl open a socket on and connects to 127.0.0.1. Suggested fix: sun.nio.ch.PipeImpl should use loc

[bug] sun.nio.ch.WindowsSelectorImpl uses Pipe.open

2015-12-03 Thread Matthias-Christian Ott
Expected behaviour: sun.nio.ch.WindowsSelectorImpl#wakeup works if sun.nio.ch.WindowsSelectorProvider is not the provider for java.nio.channels.Pipe#open. Actual behaviour: sun.nio.ch.WindowsSelectorImpl#WindowsSelectorImpl uses java.nio.channels.Pipe#open to create a pipe for java.nio.Selector#wa