This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/8.5.x by this push:
     new 0b47b73fe8 Fix BZ 67934. Prefer Tomcat Native 1.2.x over 2.0.x
0b47b73fe8 is described below

commit 0b47b73fe8c519496728020efba95e30ac8cc5e5
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Fri Nov 3 14:07:11 2023 +0000

    Fix BZ 67934. Prefer Tomcat Native 1.2.x over 2.0.x
    
    1.2.x supports the APR/Native connector whereas 2.0.x does not.
    https://bz.apache.org/bugzilla/show_bug.cgi?id=67934
---
 java/org/apache/tomcat/jni/Library.java | 7 +++++--
 webapps/docs/changelog.xml              | 5 +++++
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/java/org/apache/tomcat/jni/Library.java 
b/java/org/apache/tomcat/jni/Library.java
index 7211c48aa1..75a2de866d 100644
--- a/java/org/apache/tomcat/jni/Library.java
+++ b/java/org/apache/tomcat/jni/Library.java
@@ -20,8 +20,11 @@ import java.io.File;
 
 public final class Library {
 
-    /* Default library names */
-    private static final String [] NAMES = {"tcnative-2", "libtcnative-2", 
"tcnative-1", "libtcnative-1"};
+    /*
+     * Default library names - use 1.x in preference to 2.x if both are 
available as only 1.x supports the APR/Native
+     * connector.
+     */
+    private static final String [] NAMES = {"tcnative-1", "libtcnative-1", 
"tcnative-2", "libtcnative-2"};
     /*
      * A handle to the unique Library singleton instance.
      */
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 57fa62c0e8..2fd739ca48 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -173,6 +173,11 @@
         <bug>67927</bug>: Reloading TLS configuration can cause the Connector 
to
         refuse new connections or the JVM to crash. (markt)
       </fix>
+      <fix>
+        <bug>67934</bug>: If both Tomcat Native 1.2.x and 2.0.x are available,
+        prefer 1.2.x since it supports the APR/Native connector whereas 2.0.x
+        does not. (markt)
+      </fix>
     </changelog>
   </subsection>
   <subsection name="Other">


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to