Hello!

It is not always easy to avoid assertion below by means of application logic 
(in other words
to ensure there is no multipart message in active state).

==
dev:~/projects/zeromq-play >./orphan
Assertion failed: !more || pipes [current] != pipe_ (lb.cpp:48)
Aborted (core dumped)
dev:~/projects/zeromq-play >cat orphan.cpp
#include <zmq.hpp>

#include <iostream>

int
main(int, char*)
{
  zmq::context_t ctx (1);

  {
    zmq::message_t m(100);
    strcpy(static_cast<char*>(m.data()), "something");
    
    zmq::socket_t s (ctx, ZMQ_DOWNSTREAM);
    s.connect("tcp://localhost:2333");
    s.send(m, ZMQ_SNDMORE);
  }

  std::cout << "out of the block" << std::endl;
}
==

Would be great if 0mq can survive in such a situation.

Thanks.

-- 
Best regards,
Ilja Golshtein.
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to