-
Enhancement
-
Resolution: Fixed
-
P2
-
7
-
b05
-
generic
-
generic
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8247075 | emb-8u261 | Prasadarao Koppula | P2 | Resolved | Fixed | team |
After dealing with several recent multi-threaded JSSE escalations, we should really rework our debug output to be clearer what is being output, and when. Currently we just call System.out repeatedly. This has at least two issues:
1) It's hard to know which thread is calling.
2) Many related calls to System.out.println can interleaved. We should consider creating a large StringBuffer, then outputing that all at once.
For example:
if (debug != null && Debug.isOn("verbose")) {
s.print("RandomCookie: ");
clnt_random.print(s);
s.print("Session ID: ");
s.println(sessionId);
s.println("Cipher Suites: " + cipherSuites);
Debug.println(s, "Compression Methods", compression_methods);
extensions.print(s);
s.println("***");
This will take a fair amount of work, but will definitely help in the debugging.
Also, it would be good for binary data to be output as hex numbers instead of signed decimals. This will make it easier to match up tcpdump/snoop data fields.
1) It's hard to know which thread is calling.
2) Many related calls to System.out.println can interleaved. We should consider creating a large StringBuffer, then outputing that all at once.
For example:
if (debug != null && Debug.isOn("verbose")) {
s.print("RandomCookie: ");
clnt_random.print(s);
s.print("Session ID: ");
s.println(sessionId);
s.println("Cipher Suites: " + cipherSuites);
Debug.println(s, "Compression Methods", compression_methods);
extensions.print(s);
s.println("***");
This will take a fair amount of work, but will definitely help in the debugging.
Also, it would be good for binary data to be output as hex numbers instead of signed decimals. This will make it easier to match up tcpdump/snoop data fields.
- backported by
-
JDK-8247075 Multithreaded JSSE application debug information is hard to read
- Resolved
- duplicates
-
JDK-8054100 Add timestamps to JSSE debug logs
- Closed
- relates to
-
JDK-8196584 TLS 1.3 Implementation
- Resolved
-
JDK-8133815 Runtime managed flag for SSL/TLS debugging
- Open
-
JDK-8056026 Debug security logging should print Provider used for each crypto operation
- Resolved
-
JDK-8146635 Introduce Logger API for security libs diagnostics
- Closed
(1 relates to)