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

yy l liyongyan0523 at gmail.com
Thu Jul 21 11:23:21 CEST 2011

First, thank you very much!

As you said, "test" code is almost commented out. But that is exactly what I
confused. My server doesn't send any data but only bind the socket. However,
it's memory still grows continunously.

Attachment is my new code, I delete the part commented previously. You can
build and have a test.

Hope you can help me! Thank you!

2011/7/20 Ivan Pechorin <ivan.pechorin at gmail.com>

> 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.
> _______________________________________________
> 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/20110721/d3fe7585/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test code 20110721.rar
Type: application/rar
Size: 737 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110721/d3fe7585/attachment.rar>

More information about the zeromq-dev mailing list