def write(self, s):
        """Write a string out to the SSL socket fully
        """
        try:
            write = self.sock.write
        except __HOLE__:
            # works around a bug in python socket library
            raise IOError('Socket closed')
        else:
            while s:
                n = write(s)
                if not n:
                    raise IOError('Socket closed')
                s = s[n:]
dataset/ETHPy150Open veegee/amqpy/amqpy/transport.py/SSLTransport.write