Skip to content

A more robust way to gather facts from nodes #406

Open
@doodlesbykumbi

Description

@doodlesbykumbi

I have a local setup with Redis and some application nodes. I have another redis client that is snooping on the channels that the adapter is using.

Whenever I'm snooping I get this error:

Error: timeout reached while waiting for sockets response

I looked into it and this error is because while snooping request.numSub > request.msgCount since my other client is just a spy. It would be nice if observing the channel didn't break the functionality. Perhaps there could be a way to count participant subs only.

if (request.msgCount === request.numSub) {
clearTimeout(request.timeout);
if (request.resolve) {
request.resolve(request.sockets);
}
this.requests.delete(requestId);
}

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