mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Fix #2654
This commit is contained in:
parent
52ce466f6b
commit
ae4a988a78
@ -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_)
|
||||
|
Loading…
Reference in New Issue
Block a user