On Tue, 12 Aug 2025 04:24:41 GMT, Jaikiran Pai <j...@openjdk.org> wrote:

>> Hello @jwilliams990 
>> 
>>> Hi, Which version of OpenJDK is this change available in?
>> 
>> This change is currently in the unreleased Java 26 version. It's only 
>> available in 26 early access builds https://jdk.java.net/26/ or one has to 
>> manually build this JDK repo to use this feature. 
>> 
>>> I am running into a situation where Java on Windows drops TCP/HTTP 
>>> connections, but i don't have this issue on Linux (I have tested with JDK 
>>> 21.0.8+9).
>> 
>> Linux too has a limit on the number of backlog connections. I don't know the 
>> details of the issue you are running into but it could be unrelated to 
>> trying to use a backlog value greater than 200 on Windows, when creating a 
>> `ServerSocket`.
>
>> Hi @jaikiran, Thanks for your response. Any chance this could be included in 
>> Java 21 LTS in the future?
> 
> Backports to OpenJDK are managed by a separate "jdk-updates" project 
> https://openjdk.org/projects/jdk-updates/. Members of that project decide 
> which changes should be backported (and when).
> 
> For this specific change, Java 26 release isn't scheduled for this year. Once 
> it is released and after that version sees usage in real world applications, 
> only then enhancements like these are usually considered for backports. So 
> it's too early to say if/when this change will be backported.
> 
> In the meantime, what would be good is if you suspect that the backlog limit 
> is indeed causing this issue on your setup, you could try to use the 26 early 
> access build which is available here https://jdk.java.net/26/ and see if that 
> helps you get past this issue. Are you creating a ServerSocket (or some other 
> construct?) with some explicit value for backlog that is greater than 200?

> Hi @jaikiran, I am running Apache Tomcat on Java. Tomcat has an acceptCount 
> set to a large number (greater than 200). I believe Tomcat creates a 
> ServerSocket with the configured acceptCount, and I suspect that it is not 
> effective on Windows for the reasons mentioned above in this trail.

Thank you for that detail, that's useful to know. Based on what you note and 
what's documented of that Connector attribute in Tomcat docs - 
https://tomcat.apache.org/tomcat-9.0-doc/config/http.html#Attributes_Standard%20Implementation_acceptCount,
 I think what you are suggesting is correct - the backlog might be playing a 
role here.

If you get a chance to try this with Java 26 early access build, that would be 
a good experiment to verify that this change does indeed help this use case 
(I'll be curious to hear how that test goes).

-------------

PR Comment: https://git.openjdk.org/jdk/pull/25819#issuecomment-3177673220

Reply via email to