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

rmaucher 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 24fcdb1f7c Actually use pollerThreadPriority
24fcdb1f7c is described below

commit 24fcdb1f7c1f38f7af867070a35bdf1853fba94b
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 7b1dff1ddb..09b4750f33 100644
--- a/java/org/apache/tomcat/util/net/NioEndpoint.java
+++ b/java/org/apache/tomcat/util/net/NioEndpoint.java
@@ -374,7 +374,7 @@ public class NioEndpoint extends 
AbstractNetworkChannelEndpoint<NioChannel,Socke
             // 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 192bc8ada2..d6454cb5df 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -291,6 +291,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