src/java.base/share/classes/sun/security/ssl/SSLSocketOutputRecord.java
branchJDK-8145252-TLS13-branch
changeset 56784 6210466cf1ac
parent 56686 07dc566630ee
equal deleted inserted replaced
56782:b472b5917a1b 56784:6210466cf1ac
   303                 isFirstAppOutputRecord = false;
   303                 isFirstAppOutputRecord = false;
   304             }
   304             }
   305 
   305 
   306             offset += fragLen;
   306             offset += fragLen;
   307 
   307 
       
   308             // atKeyLimit() inactive when limits not checked, tc set when limits
       
   309             // are active.
   308             if (writeCipher.atKeyLimit()) {
   310             if (writeCipher.atKeyLimit()) {
   309                 if (SSLLogger.isOn && SSLLogger.isOn("ssl")) {
   311                 if (SSLLogger.isOn && SSLLogger.isOn("ssl")) {
   310                     SSLLogger.fine("KeyUpdate: triggered");
   312                     SSLLogger.fine("KeyUpdate: triggered, write side.");
   311                 }
   313                 }
   312 
   314 
   313                 PostHandshakeContext p = new PostHandshakeContext(tc);
   315                 PostHandshakeContext p = new PostHandshakeContext(tc);
   314                 KeyUpdate.handshakeProducer.produce(p,
   316                 KeyUpdate.handshakeProducer.produce(p,
   315                         new KeyUpdateMessage(p, KeyUpdateRequest.REQUESTED));
   317                         new KeyUpdateMessage(p, KeyUpdateRequest.REQUESTED));