On Nov 2, 2011, at 7:47 PM, Chuck Remes wrote: > Read this section of the guide: http://zguide.zeromq.org/page:all#-MQ > 1. Make sure all sockets set ZM_LINGER to 0 or a positive integer. > 2. When zmq_term() is called, any sockets blocking on a read or write will > be interrupted and return -1. Check zmq_errno() to see if the value is > EINTR. If so, close the socket with zmq_close(). > zmq_term() will hang forever unless all sockets are closed, and sockets > > won't close unless LINGER is set to 0 or higher. > I hope that helps.
Sorry I did not correctly explain the problem. My server has "forever" cycle. It sends heartbeat message by PUB socket every seconds. It also does some other simple work. But when client application terminates server hangs in zmq_sendmsg() function. It looks like bad application may hang server. Regards Alex _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
