[zeromq-dev] Issues with large numbers of clients

Pieter Hintjens ph at imatix.com
Mon Jan 28 09:39:44 CET 2013

On Sun, Jan 27, 2013 at 2:46 AM, Will Moss <wmoss at bu.mp> wrote:

> I'm using the same client identity to demonstrate the point that the ROUTER
> socket cannot possibly be removing the routing information when the client
> disconnects, since when it reconnects later, the data is still buffered and
> ready to be sent out.

Duplicate identities are handled by one of the connections getting a
generated identity.

OK, here's a test case that creates lots of connections to stress a
router socket.


- create dealer socket
- connect and send message
- wait for reply
- destroy dealer socket
- repeat indefinitely

When you run it you can see memory use doesn't grow (as far as I can tell).


More information about the zeromq-dev mailing list