def send(self, data):
        while len(data) > 0:
            if self.ssl_ca_file:
                sent = self.sock.write(data)
            else:
                sent = self.sock.send(data)
            data = data[sent:]
        self.connect_wait = BACKOFF_INITIAL
Keep calling SSLSocket.write until the entire message has been sent
dataset/ETHPy150Open uber/clay/clay/logger.py/TCPHandler.send