(tomcat) 01/02: Fix backport

[email protected]
Newsgroups gmane.comp.jakarta.tomcat.devel
Message-ID <[email protected]>
This is an automated email from the ASF dual-hosted git repository.

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

commit 1ede6dd0e9fb4c82eb40155cb5fbd267053f84cf
Author: Mark Thomas <[email protected]>
AuthorDate: Wed Aug 19 13:29:06 2026 +0100

    Fix backport
---
 java/org/apache/catalina/authenticator/DigestAuthenticator.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/java/org/apache/catalina/authenticator/DigestAuthenticator.java b/java/org/apache/catalina/authenticator/DigestAuthenticator.java
index fdcacb2a41..e091e472d7 100644
--- a/java/org/apache/catalina/authenticator/DigestAuthenticator.java
+++ b/java/org/apache/catalina/authenticator/DigestAuthenticator.java
@@ -532,7 +532,8 @@ public class DigestAuthenticator extends AuthenticatorBase {
         nonces = new LinkedHashMap<String,DigestAuthenticator.NonceInfo>() {
 
             private static final long serialVersionUID = 1L;
-            private static final long LOG_SUPPRESS_TIME = TimeUnit.MINUTES.toNanos(5);
+            // 5 minutes in nanoseconds
+            private static final long LOG_SUPPRESS_TIME = 5 * 60 * 1000 * 1000 * 1000;
 
             private long lastLog = System.nanoTime() - 1;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.