def recv(self, buflen=1024, flags=0):
        if not self._sslobj:
            return socket.recv(self, buflen, flags)
        elif flags != 0:
            raise ValueError(
                '%s.recv(): non-zero flags not allowed' % self.__class__
            )

        try:
            return self.read(buflen)
        except ssl.SSLError as exc:
            if exc.args[0] == ssl.SSL_ERROR_WANT_READ:
                raise SocketError(errno.EAGAIN)
            raise


### IO Loop
dataset/ETHPy150Open HenryHu/pybbs/xmpp/aio.py/SSLSocket.recv/original