[zeromq-dev] Question Regarding XREP

Praveen Baratam praveen.baratam+zmq at gmail.com
Fri Dec 3 10:26:21 CET 2010


Dear Dhammika,

I just raised a ticket on github as per your instructions.

Thank you!

-------------------------------------------------------



On Thu, Dec 2, 2010 at 10:16 PM, Dhammika Pathirana <dhammika at gmail.com>wrote:

> On Thu, Dec 2, 2010 at 1:22 AM, Praveen Baratam
> <praveen.baratam+zmq at gmail.com <praveen.baratam%2Bzmq at gmail.com>> wrote:
> > Dear Dhammika and Chuck,
> > I am trying to use an XREP socket as a PUB socket with publisher side
> > filtering. In our case we dont need multiple subscriptions from a single
> > sub-socket, so we are trying to use  XREQ sockets as sinks and XREP
> socket
> > as router as discussed in the guide - Advanced Stuff Chapter. Its working
> to
> > our expectations but zmq fails with assertion at line 60 in xrep.cpp
> > sometimes. I believe thats because of duplicate identitites.
> > <CODE>
> >
> > //  TODO: What if new connection has same peer identity as the old one?
> > outpipe_t outpipe = {outpipe_, true};
> > bool ok = outpipes.insert (outpipes_t::value_type (
> >             peer_identity_, outpipe)).second;
> > zmq_assert (ok);   //-------------> Failing here
> >
> > </CODE>
>
>
> oops, we've fixed it for other sockets, but not for XREQ/XREP.
> Can you open tickets for this and identity deletion issue?
> If possible, pls add code samples.
>
> thanks
>
> Dhammika
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20101203/cfb2ed49/attachment.htm>


More information about the zeromq-dev mailing list