… or how does zmq deal with clients that disconnect? Is there some sort of timeout for a queue where it can continue receiving messages if the client disconnects, but clean up after itself after so many seconds?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
See: http://api.zeromq.org/2-1:zmq-setsockopt
ZMQ sockets have a concept of high water mark.
From the docs:
For each type of zmq sockets (REQ, REP, PUB, SUB etc) you can check the document on it’s behavior – if it blocks sending of messages or drops them.
Mostly when the client disconnects, it drops the messages. If that is important to you, you must build message persistence and reliability on top of ZMQ patterns.