@Override
        public void flush() throws IOException {
            waitForHandshake();
            synchronized (writeLock) {
                flushInternal();
            }
        }
Wrap bytes written to the underlying socket.
common/src/main/java/org/conscrypt/ConscryptEngineSocket.java