(tomcat) branch 10.1.x updated: Fix backport

[email protected]
Newsgroups gmane.comp.jakarta.tomcat.devel
Message-ID <178714258244.1373889.4863330317789080213@gitbox3-he-fi.apache.org>
This is an automated email from the ASF dual-hosted git repository.

markt-asf 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 2589d82677 Fix backport
2589d82677 is described below

commit 2589d82677de2f9565cfaa7bd28f1fd90c9c461d
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 b4843e9532..f7f3006c11 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<>() {
 
             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.