private void handshakeFailure() {
    //Release all resources such as internal buffers that SSLEngine is managing
    sslEngine.closeOutbound();
    metrics.sslHandshakeErrorCount.inc();
    try {
      sslEngine.closeInbound();
    } catch (SSLException e) {
      logger.debug("SSLEngine.closeInBound() raised an exception.", e);
    }
  }
Increase the size of {@link #netWriteBuffer}. To be called when a wrap call returns {@link Status#BUFFER_OVERFLOW}.
ambry-network/src/main/java/com/github/ambry/network/SSLTransmission.java