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 2630fcbae0 Remove unnecessary code
2630fcbae0 is described below
commit 2630fcbae089f1f74438247214d4fe622f610545
Author: Mark Thomas <[email protected]>
AuthorDate: Tue Nov 8 11:41:41 2022 +0000
Remove unnecessary code
The default async timeout is stored on the Connector and retrieved from
there by the request. The request then sets it on the Processor. It is
never used by the protocol or the endpoint.
---
java/org/apache/catalina/connector/Connector.java | 1 -
webapps/docs/changelog.xml | 4 ++++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/java/org/apache/catalina/connector/Connector.java
b/java/org/apache/catalina/connector/Connector.java
index 9148495f0b..3066b33ab6 100644
--- a/java/org/apache/catalina/connector/Connector.java
+++ b/java/org/apache/catalina/connector/Connector.java
@@ -393,7 +393,6 @@ public class Connector extends LifecycleMBeanBase {
*/
public void setAsyncTimeout(long asyncTimeout) {
this.asyncTimeout= asyncTimeout;
- setProperty("asyncTimeout", String.valueOf(asyncTimeout));
}
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 346f510c47..76df264394 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -151,6 +151,10 @@
not to do so and remove checks for this return value. Based on
<pr>562</pr> by tianshuang. (markt)
</scode>
+ <scode>
+ Remove unnecessary code that exposed the <code>asyncTimeout</code> to
+ components that never used it. (markt)
+ </scode>
</changelog>
</subsection>
<subsection name="Jasper">
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]