On 29/09/2020 16:29, jonmcalexan...@wellsfargo.com.INVALID wrote: > I know I'm not a contributor, but what is the reason for removing the APR > Connector?
It is inherently less stable. If we get the NIO code wrong, you might see a NullPointerException. If we get the APR code wrong you might see a JVM crash. The primary benefit when the connector was first introduced was performance. With current JVMs HTTP performance of pure Java connectors is broadly similar to the APR/Native connector. For HTTPS, APR/Native still provides a performance boost but we see a similar performance boost when we use APR/Native to plug OpenSSL into NIO or NIO2 and that requires less native code (and hence is less prune to stability issues). In short, we can get the same benefits as the APR connector with NIO+OpenSSL with less native code and hence less risk. There are secondary benefits in terms of where we can clean up some of the Tomcat internals if we only need to support two connectors (NIO and NIO2) rather than 3. Mark > > > Dream * Excel * Explore * Inspire > Jon McAlexander > Infrastructure Engineer > Asst Vice President > > Middleware Product Engineering > Enterprise CIO | Platform Services | Middleware | Infrastructure Solutions > > 8080 Cobblestone Rd | Urbandale, IA 50322 > MAC: F4469-010 > Tel 515-988-2508 | Cell 515-988-2508 > > jonmcalexan...@wellsfargo.com > > > This message may contain confidential and/or privileged information. If you > are not the addressee or authorized to receive this for the addressee, you > must not use, copy, disclose, or take any action based on this message or any > information herein. If you have received this message in error, please advise > the sender immediately by reply e-mail and delete this message. Thank you for > your cooperation. > > > -----Original Message----- > From: Rémy Maucherat <r...@apache.org> > Sent: Tuesday, September 29, 2020 6:58 AM > To: Tomcat Developers List <dev@tomcat.apache.org> > Subject: Re: Removing the APR connector > > On Tue, Sep 29, 2020 at 1:32 PM Mark Thomas <ma...@apache.org> wrote: > >> All, >> >> Removing the APR connector (HTTP and AJP) is currently on the TODO >> list for Tomcat 10.0.x (i.e. the current development branch). >> >> I am wondering whether we are still happy with this plan as we have >> had a few 10.0.x milestone releases and we haven't made any efforts to >> remove the APR connector. >> >> I'm happy to remove APR from 10.0.x but I am equally happy postponing >> this to a later release if necessary. >> >> We'd still need Tomcat Native support to enable the use of OpenSSL >> with NIO and NIO2. I am only thinking of removing the APR based HTTP >> and AJP connectors (with associated plumbing) and possibly some of the >> org.apache.tomcat.jni package. >> >> Thoughts? >> > > I would rather postpone at this point, with the idea of really removing it in > 10.1. > Maybe we should remove it from the docs in 10.0 in preparation for the move ? > > Rémy > > >> >> Mark >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For >> additional commands, e-mail: dev-h...@tomcat.apache.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org > For additional commands, e-mail: dev-h...@tomcat.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org