src/gevent/_sslgte279.py
def read(self, len=0, buffer=None):
        """Read up to LEN bytes and return them.
        Return zero-length string on EOF."""
        self._checkClosed()

        while 1:
            if not self._sslobj:
                raise ValueError("Read on closed or unwrapped SSL socket.")

            try:
                if buffer is not None:
                    return self._sslobj.read(len, buffer)
                else:
                    return self._sslobj.read(len or 1024)
            except SSLWantReadError:
                if self.timeout == 0.0:
                    raise
                self._wait(self._read_event, timeout_exc=_SSLErrorReadTimeout)
            except SSLWantWriteError:
                if self.timeout == 0.0:
                    raise
                # note: using _SSLErrorReadTimeout rather than _SSLErrorWriteTimeout below is intentional
                self._wait(self._write_event, timeout_exc=_SSLErrorReadTimeout)
            except SSLError as ex:
                if ex.args[0] == SSL_ERROR_EOF and self.suppress_ragged_eofs:
                    if buffer is not None:
                        return 0
                    else:
                        return b''
                else:
                    raise
Read up to LEN bytes and return them.
        Return zero-length string on EOF.
Read up to LEN bytes and return them.
Return zero-length string on EOF.
Read up to LEN bytes and return them . Return zero - length string on EOF .
def read(self, len=0, buffer=None):
        self._checkClosed()
        while 1:
            if not self._sslobj:
                raise ValueError("Read on closed or unwrapped SSL socket.")
            try:
                if buffer is not None:
                    return self._sslobj.read(len, buffer)
                else:
                    return self._sslobj.read(len or 1024)
            except SSLWantReadError:
                if self.timeout == 0.0:
                    raise
                self._wait(self._read_event, timeout_exc=_SSLErrorReadTimeout)
            except SSLWantWriteError:
                if self.timeout == 0.0:
                    raise
                self._wait(self._write_event, timeout_exc=_SSLErrorReadTimeout)
            except SSLError as ex:
                if ex.args[0] == SSL_ERROR_EOF and self.suppress_ragged_eofs:
                    if buffer is not None:
                        return 0
                    else:
                        return b''
                else:
                    raise
def read ( self , len = 0 , buffer = None ) : self . _checkClosed ( ) while 1 : if not self . _sslobj : raise ValueError ( "Read on closed or unwrapped SSL socket." ) try : if buffer is not None : return self . _sslobj . read ( len , buffer ) else : return self . _sslobj . read ( len or 1024 ) except SSLWantReadError : if self . timeout == 0.0 : raise self . _wait ( self . _read_event , timeout_exc = _SSLErrorReadTimeout ) except SSLWantWriteError : if self . timeout == 0.0 : raise self . _wait ( self . _write_event , timeout_exc = _SSLErrorReadTimeout ) except SSLError as ex : if ex . args [ 0 ] == SSL_ERROR_EOF and self . suppress_ragged_eofs : if buffer is not None : return 0 else : return b'' else : raise
Read up to LEN bytes and return them.
Read up to LEN bytes and return them .
"""Read up to LEN bytes and return them.
        Return zero-length string on EOF.""" # note: using _SSLErrorReadTimeout rather than _SSLErrorWriteTimeout below is intentional
self
len
buffer