Skip to content

Recursion Bug when fetching too much data #20

Open
@litecoin-extras

Description

@litecoin-extras

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions