Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show failing test to report to openjdk #6616

Closed
wants to merge 1 commit into from

Conversation

yschimke
Copy link
Collaborator

@yschimke yschimke commented Apr 3, 2021

Comparison of flaky TLSv1.2 session reuse - ServerHello from first connection and following ClientHello from second connection

Second connection working

Consuming ServerHello handshake message
"ServerHello": {
  "server version"      : "TLSv1.2",
  "random"              : "58 14 CC FF E3 30 5C F9 13 A0 AA 45 72 58 DE 4B 17 F8 52 0B 2E EE 63 04 44 4F 57 4E 47 52 44 01",
  "session id"          : "C9 9F 47 05 44 54 1F 18 5D 54 D6 86 94 2D C1 0C FA 92 4A 70 FF BA 2D 08 28 62 7E 30 CD 93 E6 92",
  "cipher suite"        : "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384(0xC02C)",
...
Produced ClientHello handshake message
"ClientHello": {
  "client version"      : "TLSv1.2",
  "random"              : "8D 65 BF C5 BA 6D 18 B8 9A 73 15 31 FA B0 E5 EE 28 E3 21 8E 12 28 05 F2 40 31 A2 94 F7 F1 D7 EE",
  "session id"          : "C9 9F 47 05 44 54 1F 18 5D 54 D6 86 94 2D C1 0C FA 92 4A 70 FF BA 2D 08 28 62 7E 30 CD 93 E6 92",
  "cipher suites"       : "[TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384(0xC02C), 

Second connection failing

Consuming ServerHello handshake message
"ServerHello": {
  "server version"      : "TLSv1.2",
  "random"              : "11 C1 1C 07 B4 C5 24 B6 42 B4 B3 4F 82 A5 2E D9 92 EB D5 F6 59 FC 8F C1 44 4F 57 4E 47 52 44 01",
  "session id"          : "91 60 74 EB 98 8D 60 5C 1D FB B6 6C EA F0 35 60 5E C0 8C E4 4F F3 44 94 B7 08 85 9F B5 E6 C1 AB",
  "cipher suite"        : "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384(0xC02C)",
...
Produced ClientHello handshake message
"ClientHello": {
  "client version"      : "TLSv1.2",
  "random"              : "40 96 82 BA F3 E8 39 16 67 6F A2 CA 1F 82 A2 F5 38 DC DF 4E BF 77 1C 58 D5 8C B7 C3 17 99 81 F5",
  "session id"          : "",
  "cipher suites"       : "[TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384(0xC02C), 

@yschimke yschimke closed this Apr 3, 2021
@yschimke
Copy link
Collaborator Author

yschimke commented Apr 4, 2021

Memory cache seems very unpredictable sun.security.util.MemoryCache in SSLSessionContextImpl. But very relevant that it has a high miss rate.

@yschimke
Copy link
Collaborator Author

yschimke commented Apr 9, 2021

@yschimke yschimke deleted the sessionfailure branch April 16, 2021 05:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant