[Git][NTPsec/ntpsec][master] Fixed default timeout passing in ntpsnmpd.py to be more saner
Ian Bruene
gitlab at mg.gitlab.com
Thu Jan 4 03:49:53 UTC 2018
Ian Bruene pushed to branch master at NTPsec / ntpsec
Commits:
c22a6e63 by Ian Bruene at 2018-01-03T21:49:06-06:00
Fixed default timeout passing in ntpsnmpd.py to be more saner
- - - - -
1 changed file:
- ntpclients/ntpsnmpd.py
Changes:
=====================================
ntpclients/ntpsnmpd.py
=====================================
--- a/ntpclients/ntpsnmpd.py
+++ b/ntpclients/ntpsnmpd.py
@@ -944,7 +944,7 @@ class DataSource: # This will be broken up in future to be less NTP-specific
class PacketControl:
- def __init__(self, sock, dbase, spinGap=0.001, timeout=30):
+ def __init__(self, sock, dbase, spinGap=0.001, timeout=defaultTimeout):
# take a pre-made socket instead of making our own so that
# PacketControl doesn't have to know or care about implementation
self.socket = sock
@@ -1274,7 +1274,7 @@ def mainloop(masterAddress=None):
dolog("initing loop\n", 1)
sock = connect(masterAddress)
dbase = DataSource()
- control = PacketControl(sock, dbase, timeout=defaultTimeout)
+ control = PacketControl(sock, dbase)
control.loopCallback = dbase.checkNotifications
control.initNewSession()
control.mainloop(True)
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/c22a6e6361f51131b367510928a80df299459126
---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/c22a6e6361f51131b367510928a80df299459126
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20180104/078fb781/attachment.html>
More information about the vc
mailing list