(self, data)
return origlen
Writes to the SSL connection.
Writes to the SSL connection.
Writes to the SSL connection .
def write(self, data):
        """
        Writes to the SSL connection.
        """
        self._check_closed()
        
        # XXX Should use sendall 
        # sent = self._connection.sendall(data)
        origlen = len(data)
        while True:
            try:
                sent = self._connection.send(data)
                if sent == len(data):
                    break
                data = data[sent:]
            except SSL.WantWriteError:
                self._poll(select.POLLOUT, 'write')
            except SSL.WantReadError:
                self._poll(select.POLLIN, 'write')
                 
        return origlen
def write ( self , data ) : self . _check_closed ( ) # XXX Should use sendall  # sent = self._connection.sendall(data) origlen = len ( data ) while True : try : sent = self . _connection . send ( data ) if sent == len ( data ) : break data = data [ sent : ] except SSL . WantWriteError : self . _poll ( select . POLLOUT , 'write' ) except SSL . WantReadError : self . _poll ( select . POLLIN , 'write' ) return origlen