[zeromq-dev] get socket condition

Goswin von Brederlow goswin-v-b at web.de
Mon Aug 11 16:32:24 CEST 2014


On Mon, Aug 11, 2014 at 05:47:14PM +0800, bino oetomo wrote:
> Dear All,
> c/q Goswin von Brederlow .. Really appreciate your response
> On Mon, August 11, 2014 5:36 pm, Goswin von Brederlow wrote:
> > There are lots of ways the underlying tcp socket can die. But zeromq
> > will reconnect the socket again and again and again.
> >
> > Only problem is that you can loose messages when it dies with messages
> > in flight. Zeromq has reliable delivery (if a message arrives then it is
> > all of a message), not garanteed delivery.
> >
> 
> So . .For now .. all I need to concern is just the HWM ?
> 
> Sincerely
> -bino-

A PUSH socket will block when the HWM is reached or return EAGAIN with
ZMQ_DONTWAIT. Easy enough to handle.

MfG
	Goswin



More information about the zeromq-dev mailing list