[Git][NTPsec/ntpsec][master] Address GitLab issue #374: ntpmon crash with Server error code BADASSOC

Eric S. Raymond gitlab at mg.gitlab.com
Thu Aug 31 22:26:08 UTC 2017


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
91d12d30 by Eric S. Raymond at 2017-08-31T18:25:54-04:00
Address GitLab issue #374: ntpmon crash with Server error code BADASSOC

- - - - -


1 changed file:

- ntpclients/ntpmon


Changes:

=====================================
ntpclients/ntpmon
=====================================
--- a/ntpclients/ntpmon
+++ b/ntpclients/ntpmon
@@ -302,6 +302,11 @@ if __name__ == '__main__':
                                 variables = session.readvar(peer.associd,
                                                             raw=True)
                             except ntp.packet.ControlException as e:
+                                if e.errorcode == ntp.control.CERR_BADASSOC:
+                                    # Probable race condition due to pool
+                                    # dropping an associaton during refresh;
+                                    # ignore. (GitLab issue #374.) 
+                                    break
                                 raise Fatal(e.message + "\n")
                             except IOError as e:
                                 raise Fatal(e.strerror)



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/91d12d300c6dc2ebdef41033aeb58cc9f652ddc3

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/91d12d300c6dc2ebdef41033aeb58cc9f652ddc3
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/20170831/eb7c006a/attachment.html>


More information about the vc mailing list