Skip to content

Commit

Permalink
Reduce log level for error that can occur in normal usage
Browse files Browse the repository at this point in the history
  • Loading branch information
markt-asf committed Dec 19, 2024
1 parent e380f5c commit 1afe414
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion java/org/apache/tomcat/util/net/NioEndpoint.java
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,9 @@ public boolean events() {
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 {
Expand Down
5 changes: 5 additions & 0 deletions webapps/docs/changelog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit 1afe414

Please sign in to comment.