[zeromq-dev] FW: zmq hangs
alt at kaluga.ru
Wed Nov 2 18:03:38 CET 2011
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
> 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()
It looks like bad application may hang server.
zeromq-dev mailing list
zeromq-dev at lists.zeromq.org
More information about the zeromq-dev