Skip to content

Commit 763a9b4

Browse files
committed
Add warning for ZMQ < 3 to the master
1 parent a6e2fea commit 763a9b4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

salt/master.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,12 @@ def __init__(self, opts):
167167
'''
168168
Create a salt master server instance
169169
'''
170+
# Warn if ZMQ < 3
171+
if int(zmq.zmq_version()[0]) < 3:
172+
log.warning('You have a version of ZMQ less than ZMQ 3! There are '
173+
'known connection keep-alive issues with ZMQ < 3 '
174+
'which may result in loss of contact with minions. '
175+
'Please upgrade your ZMQ!')
170176
SMaster.__init__(self, opts)
171177

172178
def _clear_old_jobs(self):

0 commit comments

Comments
 (0)