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

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


The following commit(s) were added to refs/heads/11.0.x by this push:
     new e3e5c29a5b Reduce log level for error that can occur in normal usage
e3e5c29a5b is described below

commit e3e5c29a5b505b21d582223e19a3539ccbf83c15
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Thu Dec 19 15:50:53 2024 +0000

    Reduce log level for error that can occur in normal usage
---
 java/org/apache/tomcat/util/net/NioEndpoint.java | 4 +++-
 webapps/docs/changelog.xml                       | 5 +++++
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/java/org/apache/tomcat/util/net/NioEndpoint.java 
b/java/org/apache/tomcat/util/net/NioEndpoint.java
index 30279002dd..7dace17469 100644
--- a/java/org/apache/tomcat/util/net/NioEndpoint.java
+++ b/java/org/apache/tomcat/util/net/NioEndpoint.java
@@ -684,7 +684,9 @@ public class NioEndpoint extends 
AbstractNetworkChannelEndpoint<NioChannel,Socke
                 SocketChannel sc = socketWrapper.getSocket().getIOChannel();
                 int interestOps = pe.getInterestOps();
                 if (sc == null) {
-                    log.warn(sm.getString("endpoint.nio.nullSocketChannel"));
+                    if (log.isDebugEnabled()) {
+                        
log.debug(sm.getString("endpoint.nio.nullSocketChannel"));
+                    }
                     socketWrapper.close();
                 } else if (interestOps == OP_REGISTER) {
                     try {
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 3813dfa7f5..2d9b8bf288 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -128,6 +128,11 @@
         Avoid a rare <code>NullPointerException</code> when recycling the
         <code>Http11InputBuffer</code>. (markt)
       </fix>
+      <fix>
+        Lower the log level to debug for logging an invalid socket channel when
+        processing poller events for the NIO Connector as this may occur in
+        normal usage. (markt)
+      </fix>
     </changelog>
   </subsection>
 </section>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to