Closed shishirpy closed 3 years ago
The error is caused because of the way binary:match(FirstPart, PeerSubscriptions)
function is used in chumak_subscription.erl
file. There should be a third case which makes sure the first of the message is a match.
Thanks for the report. Can you contribute the PR for this? I'd be happy to merge it in.
I'll do that, my concern is that there are some unit-tests related to encryption that are not passing on my local. I'll raise new issues for them.
According to the zeromq api guide: http://api.zeromq.org/master:zmq-setsockopt
The subscription should filter out messages that do not start with the filter.
The current implementation searches for the given filter in the entire message and not just the beginning. The error can be reproduced using the following code:
Once, the code is compiled do the following:
wuclient:main().
wuserver:main().
12
should be shown. But the messages show have12
somewhere in the text.