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 <[email protected]> > 2011/7/19 yy l <[email protected]>: > > 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 > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev >
test code 20110721.rar
Description: application/rar
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
