Closed olegkotsar closed 4 years ago
I don't see how this is a problem. It seems that this is how the ZeroMQ library works.
Yes, you are right, it seems that this is normal behavior, to control the repetition of messages (and exclude them) I added a unique identifier for each message. This is described in The Guide - http://zguide.zeromq.org/page:all#Idempotent-Services
Hello.
I think REQ/REP not working as intended. If the REP socket is unavailable, REQ sockets send requests, when the REP becomes available again, then it receives all the repeated requests that the REP sent, but should have received only one (without repeated).
This problem can be seen using these two examples: https://github.com/pebbe/zmq4/blob/master/examples/lpserver.go https://github.com/pebbe/zmq4/blob/master/examples/lpclient.go
I launch client:
After a few seconds, I start the server:
We can see that received three requests "I: normal request ([1])", instead of one.
A sequence of actions:
My enviroment:
I tried lpclient and lpserver scripts on Perl, Python. It works as expected, without repetitions of messages.
Tell me, please, how can I fix this?
Kind regards, Oleg