'Read any bytes out of the send BIO and write them to the underlying
transport.'

def _flushSendBIO(self):

    try:
        bytes = self._tlsConnection.bio_read((2 ** 15))
    except WantReadError:
        pass
    else:
        self.transport.write(bytes)
