[zeromq-dev] connection state - recv timeout

Martin Sustrik sustrik at 250bpm.com
Mon Oct 11 08:47:26 CEST 2010


Hi Hossein,

> How can I close the connection on client and server after my work is
> done? Will connection go to TIME_WAIT or ESTABLISHED state and not be
> closed immediately?

Just close the socket.

> How can I set timeout for recv?

Use zmq_poll. It has timeout argument.

Martin



More information about the zeromq-dev mailing list