This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push: new 9d4c579238 Remove unnecessary code 9d4c579238 is described below commit 9d4c57923896df66408ecb8ab6006f32df652cb3 Author: Mark Thomas <ma...@apache.org> 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 26eb13c181..26e432ef5d 100644 --- a/java/org/apache/catalina/connector/Connector.java +++ b/java/org/apache/catalina/connector/Connector.java @@ -400,7 +400,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 da5668d3f5..fae235b53d 100644 --- a/webapps/docs/changelog.xml +++ b/webapps/docs/changelog.xml @@ -159,6 +159,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: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org