This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/10.1.x by this push:
     new 5b59a769d2 Simplify
5b59a769d2 is described below

commit 5b59a769d2ee3e2b84cd8bd97aa3b4d8199cc609
Author: Mark Thomas <[email protected]>
AuthorDate: Mon Jun 3 08:55:55 2024 +0100

    Simplify
---
 java/org/apache/coyote/http2/Stream.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/java/org/apache/coyote/http2/Stream.java 
b/java/org/apache/coyote/http2/Stream.java
index 062221d9a4..4fec394f35 100644
--- a/java/org/apache/coyote/http2/Stream.java
+++ b/java/org/apache/coyote/http2/Stream.java
@@ -1293,7 +1293,7 @@ class Stream extends AbstractNonZeroStream implements 
HeaderEmitter {
                     readInterest = true;
                     long readTimeout = 
handler.getProtocol().getStreamReadTimeout();
                     if (readTimeout > 0) {
-                        readTimeoutExpiry = System.currentTimeMillis() + 
handler.getProtocol().getStreamReadTimeout();
+                        readTimeoutExpiry = System.currentTimeMillis() + 
readTimeout;
                     } else {
                         readTimeoutExpiry = Long.MAX_VALUE;
                     }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to