This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 14996f800a Include major version in the Tomcat Native recommended
version
14996f800a is described below
commit 14996f800aeaed59008eedc8c195889697dfc8e1
Author: Mark Thomas <[email protected]>
AuthorDate: Tue May 31 19:06:53 2022 +0100
Include major version in the Tomcat Native recommended version
---
java/org/apache/catalina/core/AprLifecycleListener.java | 9 ++++-----
webapps/docs/changelog.xml | 4 ++++
2 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/java/org/apache/catalina/core/AprLifecycleListener.java
b/java/org/apache/catalina/core/AprLifecycleListener.java
index 6009c60d63..d16f7fea30 100644
--- a/java/org/apache/catalina/core/AprLifecycleListener.java
+++ b/java/org/apache/catalina/core/AprLifecycleListener.java
@@ -16,7 +16,6 @@
*/
package org.apache.catalina.core;
-
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
@@ -34,8 +33,6 @@ import org.apache.tomcat.jni.SSL;
import org.apache.tomcat.util.ExceptionUtils;
import org.apache.tomcat.util.res.StringManager;
-
-
/**
* Implementation of <code>LifecycleListener</code> that will init and
* and destroy APR.
@@ -53,6 +50,7 @@ import org.apache.tomcat.util.res.StringManager;
public class AprLifecycleListener implements LifecycleListener {
private static final Log log =
LogFactory.getLog(AprLifecycleListener.class);
+
/**
* Info messages during init() are cached until Lifecycle.BEFORE_INIT_EVENT
* so that, in normal (non-error) cases, init() related log messages appear
@@ -68,15 +66,16 @@ public class AprLifecycleListener implements
LifecycleListener {
// ---------------------------------------------- Constants
-
protected static final int TCN_REQUIRED_MAJOR = 1;
protected static final int TCN_REQUIRED_MINOR = 2;
protected static final int TCN_REQUIRED_PATCH = 14;
+ protected static final int TCN_RECOMMENDED_MAJOR = 1;
protected static final int TCN_RECOMMENDED_MINOR = 2;
protected static final int TCN_RECOMMENDED_PV = 30;
// ---------------------------------------------- Properties
+
protected static String SSLEngine = "on"; //default on
protected static String FIPSMode = "off"; // default off, valid only when
SSLEngine="on"
protected static String SSLRandomSeed = "builtin";
@@ -192,7 +191,7 @@ public class AprLifecycleListener implements
LifecycleListener {
int patch = 0;
int apver = 0;
int rqver = TCN_REQUIRED_MAJOR * 1000 + TCN_REQUIRED_MINOR * 100 +
TCN_REQUIRED_PATCH;
- int rcver = TCN_REQUIRED_MAJOR * 1000 + TCN_RECOMMENDED_MINOR * 100 +
TCN_RECOMMENDED_PV;
+ int rcver = TCN_RECOMMENDED_MAJOR * 1000 + TCN_RECOMMENDED_MINOR * 100
+ TCN_RECOMMENDED_PV;
if (AprStatus.isAprInitialized()) {
return;
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 7c3b3d11a6..c1ecdc81d6 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -129,6 +129,10 @@
<code>RemoteIPValve</code> persist after the request is put into
asynchronous mode. (markt)
</fix>
+ <add>
+ Include the major version in the recommended version used for Tomcat
+ Native with the <code>AprLifecycleListener</code>. (markt)
+ </add>
</changelog>
</subsection>
<subsection name="Coyote">
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]