[zeromq-dev] OOB abort of previously sent msgs?

Pieter Hintjens ph at imatix.com
Tue Aug 10 11:29:53 CEST 2010

On Tue, Aug 10, 2010 at 2:30 AM, Matt Weinstein <mattweinstein at gmail.com> wrote:

> What I'd prefer is a zmq_abort(socket) that kills the most recent
> train of packets, as long as a SNDMORE == 0 packet has not been sent.
> These are likely to be sitting in a ypipe somewhere along the chain.

I suspect the frames are sent out as soon as possible.  The atomic
delivery is actually done by receivers.  If you want the ability to
abort a multipart message, you either need to build it in memory, as
you're doing, or else add your own operational control on top.

Here is a simple scheme: specify that the last frame in the request is
an operation, either EXECUTE or CANCEL.  Then to abort a job send a
CANCEL frame with SNDMORE=0.


More information about the zeromq-dev mailing list