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
commit 5dec652c44516462d68daf9287715246f5732254 Author: Mark Thomas <[email protected]> AuthorDate: Mon Sep 29 08:25:26 2025 +0100 Revert "Record the instant the request processing starts." This reverts commit 801fba68b317a03d49eec45e98b1d37a92e89119. --- java/org/apache/coyote/Request.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/java/org/apache/coyote/Request.java b/java/org/apache/coyote/Request.java index 2f31210829..1808262e71 100644 --- a/java/org/apache/coyote/Request.java +++ b/java/org/apache/coyote/Request.java @@ -20,7 +20,6 @@ import java.io.IOException; import java.io.StringReader; import java.io.UnsupportedEncodingException; import java.nio.charset.Charset; -import java.time.Instant; import java.util.HashMap; import java.util.Map; import java.util.concurrent.atomic.AtomicBoolean; @@ -150,7 +149,6 @@ public final class Request { private long bytesRead = 0; // Time of the request - useful to avoid repeated calls to System.currentTime private long startTime = -1; - private Instant startInstant = null; private long threadId = 0; private int available = 0; @@ -705,16 +703,10 @@ public final class Request { @Deprecated public void setStartTime(long startTime) { this.startTime = startTime; - startInstant = Instant.now(); } public void markStartTime() { startTime = System.currentTimeMillis(); - startInstant = Instant.now(); - } - - public Instant getStartInstant() { - return startInstant; } public long getThreadId() { @@ -816,7 +808,6 @@ public final class Request { allDataReadEventSent.set(false); startTime = -1; - startInstant = null; threadId = 0; if (hook instanceof NonPipeliningProcessor) { --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
