RFR: 8330940: Impossible to create a socket backlog greater than 200 on Windows 8+ [v2]
Jaikiran Pai
jpai at openjdk.org
Tue Aug 12 04:27:16 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?
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?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25819#issuecomment-3177649481
More information about the net-dev
mailing list