8236464: SO_LINGER option is ignored by SSLSocket in JDK 11

Baesken, Matthias matthias.baesken at sap.com
Fri Jul 10 10:45:43 UTC 2020


Hello Götz, the patch itself looks good .

However I noticed  that  in   src/java.base/share/classes/sun/security/ssl/SSLSocketImpl.java    void closeNotify(boolean useUserCanceled) throws IOException {..}
  there are some  more  diffs   related to  SO_LINGER/linger  when comparing jdk/jdk and jdk11  .
Have you checked those , do we want them in jdk11 too ?


Best regards, Matthias




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

Hi,



I am downporting this for parity with 11.0.9-oracle.

I had to do quite some adaptions:

http://cr.openjdk.java.net/~goetz/wr20/8236464-SSLSocket_LINGER-jdk11/01/



src/java.base/share/classes/sun/security/ssl/SSLSocketImpl.java

The change renames a method that is not there in 11.

I skipped the renaming and applied the functional change

that is in the same chunk.



src/java.base/share/classes/sun/security/ssl/TransportContext.java

The code deleted differs, because in 15 explicit locking

is used. I added a synchronized block in the method

introduced.



Please review.



https://bugs.openjdk.java.net/browse/JDK-8236464

https://hg.openjdk.java.net/jdk/jdk/rev/c783b60f48db



Best regards,

  Goetz



More information about the jdk-updates-dev mailing list