[zeromq-dev] PUB/SUB socket result in server's crash

Ivan Pechorin ivan.pechorin at gmail.com
Wed Jul 20 05:07:48 CEST 2011

2011/7/19 yy l <liyongyan0523 at gmail.com>:
> Attachment is my test code.

> Client is connecting and disconnecting continuously. The phenomenon is that
> memory of server is growing, and finally zmq::mailbox_t:: send (const
> command_t &cmd_) function arise an error, nbytes = -1, WSAGetLastError()
> return 10053.

You "test" code is almost commented out.

Anyway, your "server" doesn't call zmq_msg_close() after zmq_send(),
which is probably the reason for memory growth.

More information about the zeromq-dev mailing list