[zeromq-dev] Does ZMQ handle tcp-RST?

Justin Karneges justin at affinix.com
Fri Dec 13 20:14:53 CET 2013


On 12/13/2013 04:12 AM, artemv zmq wrote:
> Is there a way to tell ZMQ  to handle tcp-RST?  If remote peer abruptly
> goes down OS kernel sends RST to client. Right? So, can ZMQ handle that,
> and stop collecting messages inside in-mem queue for the remote peer
> which is down.

If a TCP connection is disconnected (due to RST or otherwise), then a 
ZeroMQ bind socket will destroy its queue with that connection and stop 
queueing, and a connect socket will retain its queue but stop sending 
until the connection is restored.

If you want to prevent queuing in all cases, set HWM to 0.

Justin



More information about the zeromq-dev mailing list