/** * Encrypt the response and flush it using <code>OutputWriter</code> */ public static void flushChannel(SocketChannel socketChannel, ByteBuffer bb) throws IOException{ SSLWorkerThread workerThread = (SSLWorkerThread)Thread.currentThread(); SSLEngine sslEngine = workerThread.getSSLEngine(); ByteBuffer outputBB = workerThread.getOutputBB(); flushChannel(socketChannel,bb,outputBB,sslEngine); }
workerThread.getSSLEngine(),readTimeout); try{ byteBuffer = SSLUtils.unwrapAll(byteBuffer, workerThread.getInputBB(),workerThread.getSSLEngine()); workerThread.setByteBuffer(byteBuffer); if (currentRead == -1 &&