[EXTERNAL] Re: Backporting Keepalive Windows Extended Socket Options (JDK-8308593) to 11u and 17u

Terry Chow (SIMBA TECHNOLOGIES INC) v-terrychow at microsoft.com
Fri Nov 3 23:33:02 UTC 2023


Hello Severin and JDK maintainers,

The backports for 21u and 17u have been completely merged, and so I want to move forward with discussing on getting the backport into 11u. I've already done some initial work/investigating for backporting to 11u. The following are necessary changes to ensure a working backport:

  1.  Lib-jdk.net.gmk will need to be updated to support building extnet for Windows.
  2.  jdk.net.ExtendedSocketOption will need to add a case to support returning a Windows instance of PlatformSocketOptions.
  3.  The Windows PlainSocketImpl class will need to have similar setOption/getOption methods as the Unix PlainSocketImpl class to support setting these extended socket options for Windows.

For points 1 and 2, those changes were also required for the 17u backport and so I believe they should also be acceptable for 11u. For point 3, that is mostly copying what's already in the Unix PlainSocketImpl class over to the Windows version of the class. Overall, the changes seem innocuous, but let me know if I missed anything that could be disruptive for 11u.

Thanks again,
Terry


________________________________
From: Severin Gehwolf <sgehwolf at redhat.com>
Sent: September 18, 2023 1:52 AM
To: Terry Chow (Simba Technologies Inc) <v-terrychow at microsoft.com>; jdk-updates-dev at openjdk.org <jdk-updates-dev at openjdk.org>
Subject: Re: [EXTERNAL] Re: Backporting Keepalive Windows Extended Socket Options (JDK-8308593) to 11u and 17u

Hi,

On Fri, 2023-09-15 at 19:31 +0000, Terry Chow (Simba Technologies Inc) wrote:
> Hi Severin,
>
> I just saw that the 21u backport merged. Thanks again for the help. I also now want to do a backport for 17u.
>
> The "Fix request" comment for 17u:
>
> The backport does not cleanly apply to 17u. The following changes were made in these files to resolve conflicts and issues:
>    1. make/modules/jdk.net/Lib.gmk --I updated this script to support building extnet for Windows.
>    2. jdk.net/share/classes/jdk/net/ExtendedSocketOptions.java --I added a case to support returning an instance of WindowsSocketOptions in PlatformSocketOptions.
> The reason for the backport to 17u is to have keepalive parity with the other OS platforms. Similarly to the 21u backport,  the risk is low as the backported code introduces a new code path that only takes effect when keepalive extended socket options are set on a Windows platform. I manually tested the patch and Tier 1 tests were ran and they're passing. No new tests were added as there are existing tests in 17u that cover this scenario. URL to intended backport PR: Backport f3ade388dac0b882e671462caa762138f44817fb · tkyc/jdk17u-dev at 7c75b9d (github.com).

Please create a backport PR for jdk17u-dev and use the new Skara
tooling for the approval process. It should handle the "Fix Request"
comment for you with the "/approval" command[1].

Thanks,
Severin

[1] https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.openjdk.org%2Fdisplay%2FSKARA%2FPull%2BRequest%2BCommands%23PullRequestCommands-%2Fapproval&data=05%7C01%7Cv-terrychow%40microsoft.com%7Cceedf509a96345938eb908dbb824974f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638306239531822349%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=zRoPe8DtbjNT%2FYeI8%2FL2%2FGmP5KVhbFXbFmf9IOmoF5w%3D&reserved=0<https://wiki.openjdk.org/display/SKARA/Pull+Request+Commands#PullRequestCommands-/approval>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/jdk-updates-dev/attachments/20231103/7b98ee7a/attachment-0001.htm>


More information about the jdk-updates-dev mailing list