RFR: 8330940: Impossible to create a socket backlog greater than 200 on Windows 8+ [v2]
jwilliams990
duke at openjdk.org
Tue Aug 12 03:59:24 UTC 2025
On Tue, 12 Aug 2025 03:49:10 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:
>> Hi, Which version of OpenJDK is this change available in? 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).
>
> 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?
The default TCP backlog in Windows is 200. Linux has a default of 4096. The issue i am seeing is when running Apache Tomcat on Windows vs. Linux, Windows shows a very high percentage of connection refused errors vs. Linux.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25819#issuecomment-3177608798
More information about the net-dev
mailing list