This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push: new c3bd12d Fix copy/paste error c3bd12d is described below commit c3bd12dad649a211f981a0674625d2a45b768491 Author: Mark Thomas <ma...@apache.org> AuthorDate: Thu Feb 10 17:11:56 2022 +0000 Fix copy/paste error --- java/org/apache/tomcat/util/net/Nio2Endpoint.java | 6 +++--- java/org/apache/tomcat/util/net/NioEndpoint.java | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java/org/apache/tomcat/util/net/Nio2Endpoint.java b/java/org/apache/tomcat/util/net/Nio2Endpoint.java index 01f3c46..a5ad04a 100644 --- a/java/org/apache/tomcat/util/net/Nio2Endpoint.java +++ b/java/org/apache/tomcat/util/net/Nio2Endpoint.java @@ -86,7 +86,7 @@ public class Nio2Endpoint extends AbstractJsseEndpoint<Nio2Channel,AsynchronousS private SynchronizedStack<Nio2Channel> nioChannels; private SocketAddress previousAcceptedSocketRemoteAddress = null; - private long previouspreviousAcceptedSocketNanoTime = 0; + private long previousAcceptedSocketNanoTime = 0; // --------------------------------------------------------- Public Methods @@ -369,11 +369,11 @@ public class Nio2Endpoint extends AbstractJsseEndpoint<Nio2Channel,AsynchronousS SocketAddress currentRemoteAddress = result.getRemoteAddress(); long currentNanoTime = System.nanoTime(); if (currentRemoteAddress.equals(previousAcceptedSocketRemoteAddress) && - currentNanoTime - previouspreviousAcceptedSocketNanoTime < 1000) { + currentNanoTime - previousAcceptedSocketNanoTime < 1000) { throw new IOException(sm.getString("endpoint.err.duplicateAccept")); } previousAcceptedSocketRemoteAddress = currentRemoteAddress; - previouspreviousAcceptedSocketNanoTime = currentNanoTime; + previousAcceptedSocketNanoTime = currentNanoTime; } return result; diff --git a/java/org/apache/tomcat/util/net/NioEndpoint.java b/java/org/apache/tomcat/util/net/NioEndpoint.java index aef78e2..5e547a2 100644 --- a/java/org/apache/tomcat/util/net/NioEndpoint.java +++ b/java/org/apache/tomcat/util/net/NioEndpoint.java @@ -110,7 +110,7 @@ public class NioEndpoint extends AbstractJsseEndpoint<NioChannel,SocketChannel> private SynchronizedStack<NioChannel> nioChannels; private SocketAddress previousAcceptedSocketRemoteAddress = null; - private long previouspreviousAcceptedSocketNanoTime = 0; + private long previousAcceptedSocketNanoTime = 0; // ------------------------------------------------------------- Properties @@ -523,11 +523,11 @@ public class NioEndpoint extends AbstractJsseEndpoint<NioChannel,SocketChannel> SocketAddress currentRemoteAddress = result.getRemoteAddress(); long currentNanoTime = System.nanoTime(); if (currentRemoteAddress.equals(previousAcceptedSocketRemoteAddress) && - currentNanoTime - previouspreviousAcceptedSocketNanoTime < 1000) { + currentNanoTime - previousAcceptedSocketNanoTime < 1000) { throw new IOException(sm.getString("endpoint.err.duplicateAccept")); } previousAcceptedSocketRemoteAddress = currentRemoteAddress; - previouspreviousAcceptedSocketNanoTime = currentNanoTime; + previousAcceptedSocketNanoTime = currentNanoTime; } return result; --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org