You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2020/01/24 20:01:18 UTC
[tomcat] branch 9.0.x updated: Restore constant to avoid unwanted
API change
This is an automated email from the ASF dual-hosted git repository.
remm 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 39b8baf Restore constant to avoid unwanted API change
39b8baf is described below
commit 39b8baf147af9fc9cbb98bf400792f962c0c4e68
Author: remm <re...@apache.org>
AuthorDate: Fri Jan 24 21:00:58 2020 +0100
Restore constant to avoid unwanted API change
---
java/org/apache/catalina/connector/Connector.java | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/java/org/apache/catalina/connector/Connector.java b/java/org/apache/catalina/connector/Connector.java
index d54927c..0fe6dc6 100644
--- a/java/org/apache/catalina/connector/Connector.java
+++ b/java/org/apache/catalina/connector/Connector.java
@@ -57,6 +57,13 @@ public class Connector extends LifecycleMBeanBase {
private static final Log log = LogFactory.getLog(Connector.class);
+ /**
+ * Alternate flag to enable recycling of facades.
+ */
+ public static final boolean RECYCLE_FACADES =
+ Boolean.parseBoolean(System.getProperty("org.apache.catalina.connector.RECYCLE_FACADES", "false"));
+
+
public static final String INTERNAL_EXECUTOR_NAME = "Internal";
@@ -165,8 +172,7 @@ public class Connector extends LifecycleMBeanBase {
* manager is enabled, this setting is ignored and object facades are
* always discarded.
*/
- protected boolean discardFacades =
- Boolean.parseBoolean(System.getProperty("org.apache.catalina.connector.RECYCLE_FACADES", "false"));
+ protected boolean discardFacades = RECYCLE_FACADES;
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org