'Read up to LEN bytes and return them.
Return zero-length string on EOF.'

def read(self, len=1024):

    try:
        return self._sslobj.read(len)
    except SSLError as x:
        if ((x.args[0] == SSL_ERROR_EOF) and self.suppress_ragged_eofs):
            return ''
        else:
            raise
