[zeromq-dev] flushing messages on PULL socket before close()ing?
Alexander Voss
alexvoss.uk at gmail.com
Fri May 11 13:51:53 CEST 2012
Dear all,
apologies in advance if I am missing something obvious here but I have
a number of workers using a PULL socket to retrieve messages and I
would like to be able to restart these workers as needed. The problem
I am having is that the socket may have messages stored that I
understand will be discarded when calling close() on the socket. The
PUSH socket I am receiving from is the stable part that bind()s.
So, is there a way to tell ZeroMQ to stop receiving new messages so I
can process all that has already been received before calling close?
Have I got the wrong end of the stick altogether?
Cheers,
Alex
--
Alex Voss
Lecturer in Software Engineering
School of Computer Science, University of St Andrews
More information about the zeromq-dev
mailing list