RFR: 8274524: SSLSocket.close() hangs if it is called during the ssl handshake [v2]

Alexey Bakhtin abakhtin at openjdk.java.net
Fri Oct 1 10:41:49 UTC 2021


> Please review the patch for JDK-8274524
> 
> The fix just adds locks around InputStream read and skip operations to prevent concurrent read from socket.
> sun/security/ssl jtreg tests passed
> api/javax_net/ssl/SSLSocket/setUseClientMode jck test passed

Alexey Bakhtin has updated the pull request incrementally with one additional commit since the last revision:

  Reimplemented readLock, added lock in readHandshakeRecord

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/5760/files
  - new: https://git.openjdk.java.net/jdk/pull/5760/files/d1c2a4fe..065073d1

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

  Stats: 51 lines in 2 files changed: 12 ins; 24 del; 15 mod
  Patch: https://git.openjdk.java.net/jdk/pull/5760.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/5760/head:pull/5760

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



More information about the security-dev mailing list