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 1afe41491f Reduce log level for error that can occur in normal usage 1afe41491f is described below commit 1afe41491f0e56ec0a776db5ff84607f87ce6640 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 5a501e89cc..c7944a9e0c 100644 --- a/webapps/docs/changelog.xml +++ b/webapps/docs/changelog.xml @@ -166,6 +166,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> <subsection name="Jasper"> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org