This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 872101bee9 Reduce log level for error that can occur in normal usage
872101bee9 is described below
commit 872101bee9aef4c1aaa17012113e6aed8af89f1a
Author: Mark Thomas <[email protected]>
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 99966fd464..7fa3217e9d 100644
--- a/java/org/apache/tomcat/util/net/NioEndpoint.java
+++ b/java/org/apache/tomcat/util/net/NioEndpoint.java
@@ -706,7 +706,9 @@ public class NioEndpoint extends
AbstractJsseEndpoint<NioChannel,SocketChannel>
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 b983b43c0c..ca9944cbd5 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: [email protected]
For additional commands, e-mail: [email protected]