src/java.net.http/share/classes/jdk/internal/net/http/common/SSLFlowDelegate.java
equal
deleted
inserted
replaced
169 public String monitor() { |
169 public String monitor() { |
170 StringBuilder sb = new StringBuilder(); |
170 StringBuilder sb = new StringBuilder(); |
171 sb.append("SSL: HS state: " + states(handshakeState)); |
171 sb.append("SSL: HS state: " + states(handshakeState)); |
172 sb.append(" Engine state: " + engine.getHandshakeStatus().toString()); |
172 sb.append(" Engine state: " + engine.getHandshakeStatus().toString()); |
173 sb.append(" LL : "); |
173 sb.append(" LL : "); |
174 synchronized(stateList) { |
174 for (String s: stateList) { |
175 for (String s: stateList) { |
175 sb.append(s).append(" "); |
176 sb.append(s).append(" "); |
|
177 } |
|
178 } |
176 } |
179 sb.append("\r\n"); |
177 sb.append("\r\n"); |
180 sb.append("Reader:: ").append(reader.toString()); |
178 sb.append("Reader:: ").append(reader.toString()); |
181 sb.append("\r\n"); |
179 sb.append("\r\n"); |
182 sb.append("Writer:: ").append(writer.toString()); |
180 sb.append("Writer:: ").append(writer.toString()); |
409 } |
407 } |
410 |
408 |
411 @Override |
409 @Override |
412 public void run() { |
410 public void run() { |
413 System.out.println("Monitor starting"); |
411 System.out.println("Monitor starting"); |
414 while (true) { |
412 try { |
415 try {Thread.sleep(20*1000); } catch (Exception e) {} |
413 while (true) { |
416 synchronized (list) { |
414 Thread.sleep(20 * 1000); |
417 for (Monitorable o : list) { |
415 synchronized (list) { |
418 System.out.println(o.getInfo()); |
416 for (Monitorable o : list) { |
419 System.out.println("-------------------------"); |
417 System.out.println(o.getInfo()); |
|
418 System.out.println("-------------------------"); |
|
419 } |
420 } |
420 } |
|
421 System.out.println("--o-o-o-o-o-o-o-o-o-o-o-o-o-o-"); |
421 } |
422 } |
422 System.out.println("--o-o-o-o-o-o-o-o-o-o-o-o-o-o-"); |
423 } catch (InterruptedException e) { |
423 |
424 System.out.println("Monitor exiting with " + e); |
424 } |
425 } |
425 } |
426 } |
426 } |
427 } |
427 |
428 |
428 /** |
429 /** |