RFR: 8267564: JDK-8252971 causes SPECjbb2015 socket exceptions on Windows when MKS is installed [v3]

Michael McMahon michaelm at openjdk.java.net
Fri Jun 4 22:08:21 UTC 2021


> 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.

Michael McMahon has updated the pull request incrementally with one additional commit since the last revision:

  renamed socketSupported() to init()

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/4339/files
  - new: https://git.openjdk.java.net/jdk/pull/4339/files/8c4508c4..50361f2b

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=4339&range=02
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=4339&range=01-02

  Stats: 4 lines in 3 files changed: 0 ins; 0 del; 4 mod
  Patch: https://git.openjdk.java.net/jdk/pull/4339.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/4339/head:pull/4339

PR: https://git.openjdk.java.net/jdk/pull/4339


More information about the nio-dev mailing list