Integrated: 8267564: JDK-8252971 causes SPECjbb2015 socket exceptions on Windows when MKS is installed
Michael McMahon
michaelm at openjdk.java.net
Tue Jun 8 08:02:20 UTC 2021
On Thu, 3 Jun 2021 17:16:57 GMT, Michael McMahon <michaelm at openjdk.org> wrote:
> Hi,
>
> This fixes a problem where unix domain sockets are available on Windows from third party winsock drivers (other than the Microsoft implementation in Windows 10/2019). These are available (unexpectedly) on earlier Windows releases and are not supported by Java.
>
> The fix is to search for the expected winsock service provider ID and specifically use that one when creating sockets. Previously, we just attempted to create a unix domain socket, and once that succeeded we assumed we had the right service provider.
>
> I haven't included a regression test because the environment to reproduce the issue is not part of the standard test configuration. Also, the new code is well exercised by existing tests.
>
> Thanks,
> Michael.
This pull request has now been integrated.
Changeset: 61ab4b9d
Author: Michael McMahon <michaelm at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/61ab4b9d18e7c2eee6691f3ee00e5fecb866fdcd
Stats: 69 lines in 3 files changed: 59 ins; 1 del; 9 mod
8267564: JDK-8252971 causes SPECjbb2015 socket exceptions on Windows when MKS is installed
Reviewed-by: alanb
-------------
PR: https://git.openjdk.java.net/jdk/pull/4339
More information about the nio-dev
mailing list