Re: Tomcat 9 connector refactoring: NIO vs NIO2

2015-05-05 Thread Rémy Maucherat
2015-05-04 21:54 GMT+02:00 Mark Thomas : > Looking some time further ahead where NIO2 is as stable as NIO and there > is an OpenSSL option for SSL/TLS with NIO2 I don't see any advantages of > NIO or APR/native over NIO2 which raises the possibility - at that point > - of just having NIO2. > > At

Re: Tomcat 9 connector refactoring: NIO vs NIO2

2015-05-04 Thread Mark Thomas
On 02/05/2015 21:52, Rémy Maucherat wrote: > 2015-05-01 19:28 GMT+02:00 Mark Thomas : > >> On 01/05/2015 15:03, Rémy Maucherat wrote: >>> 2015-05-01 11:55 GMT+02:00 Mark Thomas : >> So, should we drop one of NIO or NIO2 in Tomcat 9? If not, why not? If yes, which one? I volunte

Re: Tomcat 9 connector refactoring: NIO vs NIO2

2015-05-02 Thread Rémy Maucherat
2015-05-01 19:28 GMT+02:00 Mark Thomas : > On 01/05/2015 15:03, Rémy Maucherat wrote: > > 2015-05-01 11:55 GMT+02:00 Mark Thomas : > > >> So, should we drop one of NIO or NIO2 in Tomcat 9? If not, why not? If > >> yes, which one? > >> > >> I volunteer to help maintain NIO2 for the time being, so I

Re: Tomcat 9 connector refactoring: NIO vs NIO2

2015-05-02 Thread Christopher Schultz
Mark, On 5/1/15 1:28 PM, Mark Thomas wrote: > On 01/05/2015 15:03, Rémy Maucherat wrote: >> 2015-05-01 11:55 GMT+02:00 Mark Thomas : > >>> So, should we drop one of NIO or NIO2 in Tomcat 9? If not, why not? If >>> yes, which one? >>> >>> I volunteer to help maintain NIO2 for the time being, so I

Re: Tomcat 9 connector refactoring: NIO vs NIO2

2015-05-01 Thread Mark Thomas
On 01/05/2015 15:03, Rémy Maucherat wrote: > 2015-05-01 11:55 GMT+02:00 Mark Thomas : >> So, should we drop one of NIO or NIO2 in Tomcat 9? If not, why not? If >> yes, which one? >> >> I volunteer to help maintain NIO2 for the time being, so I am not in favor > of removing it at the moment. Unfort

Re: Tomcat 9 connector refactoring: NIO vs NIO2

2015-05-01 Thread Rémy Maucherat
2015-05-01 11:55 GMT+02:00 Mark Thomas : > Next up on my list is the NIO2 connector. > > NIO and APR/native both use a polling approach to non-blocking I/O. You > add the socket to the poller, tell it what operation (read/write) you > want to perform and then you wait for the poller to tell you th

Re: Tomcat 9 connector refactoring: NIO vs NIO2

2015-05-01 Thread Mark Thomas
On 01/05/2015 14:02, Mark Thomas wrote: > On 01/05/2015 13:42, Jess Holle wrote: >> Naively, looking at the Tomcat documentation and note the comparison >> table there makes it appear that: >> >> 1. NIO2 offers everything NIO does >> 2. NIO cannot offer true blocking IO, whereas NIO2 can >> >> If t

Re: Tomcat 9 connector refactoring: NIO vs NIO2

2015-05-01 Thread Mark Thomas
On 01/05/2015 13:42, Jess Holle wrote: > Naively, looking at the Tomcat documentation and note the comparison > table there makes it appear that: > > 1. NIO2 offers everything NIO does > 2. NIO cannot offer true blocking IO, whereas NIO2 can > > If that's not true, then the documentation should b

Re: Tomcat 9 connector refactoring: NIO vs NIO2

2015-05-01 Thread Jess Holle
Naively, looking at the Tomcat documentation and note the comparison table there makes it appear that: 1. NIO2 offers everything NIO does 2. NIO cannot offer true blocking IO, whereas NIO2 can If that's not true, then the documentation should be updated at least And, of course, NIO2 just s

Tomcat 9 connector refactoring: NIO vs NIO2

2015-05-01 Thread Mark Thomas
Next up on my list is the NIO2 connector. NIO and APR/native both use a polling approach to non-blocking I/O. You add the socket to the poller, tell it what operation (read/write) you want to perform and then you wait for the poller to tell you the socket is ready to perform that operation. NIO2