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 8488c607ca Add missing call to set keep-alive timeout
8488c607ca is described below
commit 8488c607caa3ebcddbe7dc743425ea1f88b4ea1b
Author: remm <[email protected]>
AuthorDate: Mon Jul 21 14:23:26 2025 +0200
Add missing call to set keep-alive timeout
Was present in AJP but not HTTP/1.1, so harmonize.
BZ69748
---
java/org/apache/coyote/http11/Http11Processor.java | 2 ++
webapps/docs/changelog.xml | 9 +++++++++
2 files changed, 11 insertions(+)
diff --git a/java/org/apache/coyote/http11/Http11Processor.java
b/java/org/apache/coyote/http11/Http11Processor.java
index 9653676c69..5b3fda2639 100644
--- a/java/org/apache/coyote/http11/Http11Processor.java
+++ b/java/org/apache/coyote/http11/Http11Processor.java
@@ -1162,6 +1162,8 @@ public class Http11Processor extends AbstractProcessor {
endRequest();
inputBuffer.nextRequest();
outputBuffer.nextRequest();
+ // Set keep alive timeout for next request
+ socketWrapper.setReadTimeout(protocol.getKeepAliveTimeout());
if (socketWrapper.isReadPending()) {
return SocketState.LONG;
} else {
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 30f8af349a..8e8c03cd57 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -105,6 +105,15 @@
issues do not "pop up" wrt. others).
-->
<section name="Tomcat 9.0.108 (remm)" rtext="in development">
+ <subsection name="Coyote">
+ <changelog>
+ <fix>
+ <bug>69748</bug>: Add missing call to set keep-alive timeout when using
+ HTTP/1.1 following an async request, which was present for AJP.
+ (remm/markt)
+ </fix>
+ </changelog>
+ </subsection>
<subsection name="Cluster">
<changelog>
<update>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]