'Un-buffer all waiting writes in L{TLSMemoryBIOProtocol._appSendBuffer}.'

def _unbufferPendingWrites(self):

    (pendingWrites, self._appSendBuffer) = (self._appSendBuffer, [])
    for eachWrite in pendingWrites:
        self._write(eachWrite)
    if self._appSendBuffer:
        return
    if (self._producer is not None):
        self._producer.resumeProducing()
        return
    if self.disconnecting:
        self._shutdownTLS()
