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

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


The following commit(s) were added to refs/heads/10.1.x by this push:
     new 9f1c854157 Actually use pollerThreadPriority
9f1c854157 is described below

commit 9f1c85415718b0d4d015239d129b502f38169e10
Author: remm <[email protected]>
AuthorDate: Wed May 20 12:19:07 2026 +0200

    Actually use pollerThreadPriority
---
 java/org/apache/tomcat/util/net/NioEndpoint.java | 2 +-
 webapps/docs/changelog.xml                       | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/java/org/apache/tomcat/util/net/NioEndpoint.java 
b/java/org/apache/tomcat/util/net/NioEndpoint.java
index 84fef9a544..ca46221f9b 100644
--- a/java/org/apache/tomcat/util/net/NioEndpoint.java
+++ b/java/org/apache/tomcat/util/net/NioEndpoint.java
@@ -373,7 +373,7 @@ public class NioEndpoint extends 
AbstractJsseEndpoint<NioChannel,SocketChannel>
             // Start poller thread
             poller = new Poller();
             Thread pollerThread = new Thread(poller, getName() + "-Poller");
-            pollerThread.setPriority(threadPriority);
+            pollerThread.setPriority(pollerThreadPriority);
             pollerThread.setDaemon(true);
             pollerThread.start();
 
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 16e5df63b0..7173afb548 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -159,6 +159,10 @@
         <bug>70050</bug>: Avoid NPE when no header frame is processed in 
HTTP/2,
         following refactor clean-up of header buffer. (remm)
       </fix>
+      <fix>
+        Properly use <code>pollerThreadPriority</code> for the NIO poller
+        thread. (remm)
+      </fix>
     </changelog>
   </subsection>
   <subsection name="Jasper">


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to