From ae4a988a78181f2c32ff6e70bf01e07a99d37f39 Mon Sep 17 00:00:00 2001 From: Thomas S Hatch Date: Mon, 10 Dec 2012 12:10:30 -0700 Subject: [PATCH] Fix #2654 --- salt/payload.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/salt/payload.py b/salt/payload.py index 73b03bfc7e..92e7e93dd5 100644 --- a/salt/payload.py +++ b/salt/payload.py @@ -125,6 +125,10 @@ class SREQ(object): self.serial = Serial(serial) self.context = zmq.Context() self.socket = self.context.socket(zmq.REQ) + if hasattr(zmq, 'RECONNECT_IVL_MAX'): + self.socket.setsockopt( + zmq.RECONNECT_IVL_MAX, 5 + ) self.socket.linger = linger if id_: self.socket.setsockopt(zmq.IDENTITY, id_)