[zeromq-dev] Dealer and router problems with "inproc" and "tcp"

Pieter Hintjens ph at imatix.com
Wed May 2 06:11:42 CEST 2012

On Wed, May 2, 2012 at 4:37 AM, 虞红伟 <yuhongweiyf at hikvision.com> wrote:

> 1.       Dealer<->Router with “inproc”. We send messages to dealers with
> router using corresponding identity firstly, then we closed the dealers, and
> did not close the router, we found that the handles (windows handle) used by
> dealers did not released until we closed the router. But we HAVE TO keep the
> router alive until program exit.

Sounds like normal behaviour. If there is a way to keep the dealer
sockets open, do that.

> 2.       Dealer<->Router with ”tcp”. We initialize the io thread numbers =
> 2. We use dealer and router send messages to each other, and we get a
> zmq_assert ( zmq_assert (sessions.empty ()) ) sometimes when we close the
> router. But we initialize the io thread numbers = 1, the assert never
> appears.

Can you make a minimal reproducible test case?

Then create an issue, and we can fix it.


More information about the zeromq-dev mailing list