Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recursion Bug when fetching too much data #20

Open
litecoin-extras opened this issue Nov 21, 2014 · 0 comments
Open

Recursion Bug when fetching too much data #20

litecoin-extras opened this issue Nov 21, 2014 · 0 comments

Comments

@litecoin-extras
Copy link

When socket reads too much data, ZmqSocket fails with a "maximum recursion error".

Please fix zmq_fallback.py from recursion to iterative like this:

def poll(self):
    while True:
        try:
            data = self._socket.recv(flags=zmq.NOBLOCK)
        except zmq.error.ZMQError:
            return
        more = self._socket.getsockopt(zmq.RCVMORE)
        self._cb(data, more)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant