Skip to content

Conversation

antonvoznia
Copy link

@antonvoznia antonvoznia commented Sep 16, 2025

Hello,

This is an unclean backport of JDK-8358764 for JDK 17.
I used the following JDK 21 backport as the baseline openjdk/jdk21u-dev#2137

Changes:

  • Brought over the Windows socket shutdown on write changes introduced with the virtual threads commit.
  • Removed comments related to virtual threads.
  • Adapted PeerReadsAfterAsyncClose.java to JDK 17 (removed virtual thread test case/scenario).

Notes:
The fix affects Windows only.
Tested test/jdk/java/nio/ and test/jdk/java/net/ on macOS/ARM and Windows/x64.
The introduced test passed successfully.

OpenJDK GHA Sanity Checks also passed.


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • JDK-8358764 needs maintainer approval

Error

 ⚠️ OCA signatory status must be verified

Issue

  • JDK-8358764: (sc) SocketChannel.close when thread blocked in read causes connection to be reset (win) (Bug - P3)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk17u-dev.git pull/3936/head:pull/3936
$ git checkout pull/3936

Update a local copy of the PR:
$ git checkout pull/3936
$ git pull https://git.openjdk.org/jdk17u-dev.git pull/3936/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 3936

View PR using the GUI difftool:
$ git pr show -t 3936

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk17u-dev/pull/3936.diff

@bridgekeeper bridgekeeper bot added the oca Needs verification of OCA signatory status label Sep 16, 2025
@bridgekeeper
Copy link

bridgekeeper bot commented Sep 16, 2025

Hi @antonvoznia, welcome to this OpenJDK project and thanks for contributing!

We do not recognize you as Contributor and need to ensure you have signed the Oracle Contributor Agreement (OCA). If you have not signed the OCA, please follow the instructions. Please fill in your GitHub username in the "Username" field of the application. Once you have signed the OCA, please let us know by writing /signed in a comment in this pull request.

If you already are an OpenJDK Author, Committer or Reviewer, please click here to open a new issue so that we can record that fact. Please use "Add GitHub user antonvoznia" as summary for the issue.

If you are contributing this work on behalf of your employer and your employer has signed the OCA, please let us know by writing /covered in a comment in this pull request.

@openjdk
Copy link

openjdk bot commented Sep 16, 2025

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@antonvoznia
Copy link
Author

/covered Azul Systems

@antonvoznia
Copy link
Author

/covered

@bridgekeeper bridgekeeper bot added the oca-verify Needs verification of OCA signatory status label Sep 16, 2025
@bridgekeeper
Copy link

bridgekeeper bot commented Sep 16, 2025

Thank you! Please allow for a few business days to verify that your employer has signed the OCA. Also, please note that pull requests that are pending an OCA check will not usually be evaluated, so your patience is appreciated!

@openjdk
Copy link

openjdk bot commented Sep 22, 2025

@antonvoznia Please do not rebase or force-push to an active PR as it invalidates existing review comments. Note for future reference, the bots always squash all changes into a single commit automatically as part of the integration. See OpenJDK Developers’ Guide for more information.

@antonvoznia antonvoznia changed the title 8358764: (sc) SocketChannel.close when thread blocked in read causes connection to be reset (win) Backport e5196fc24d2ec9e581af7803ac47036111fee029 Sep 22, 2025
@openjdk openjdk bot changed the title Backport e5196fc24d2ec9e581af7803ac47036111fee029 8358764: (sc) SocketChannel.close when thread blocked in read causes connection to be reset (win) Sep 22, 2025
@openjdk
Copy link

openjdk bot commented Sep 22, 2025

This backport pull request has now been updated with issue from the original commit.

@openjdk openjdk bot added the backport Port of a pull request already in a different code base label Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Port of a pull request already in a different code base oca Needs verification of OCA signatory status oca-verify Needs verification of OCA signatory status
Development

Successfully merging this pull request may close these issues.

2 participants