[Git][NTPsec/ntpsec][master] Instrument to track down a hang.

Eric S. Raymond gitlab at mg.gitlab.com
Fri Nov 11 13:25:49 UTC 2016


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


Commits:
976070de by Eric S. Raymond at 2016-11-11T08:25:36-05:00
Instrument to track down a hang.

- - - - -


1 changed file:

- pylib/packet.py


Changes:

=====================================
pylib/packet.py
=====================================
--- a/pylib/packet.py
+++ b/pylib/packet.py
@@ -712,10 +712,14 @@ class Mode6Session:
             else:
                 tvo = self.secondary_timeout / 1000
 
+            if self.debug:
+                warn("At %s, read with timeout %d begins\n" % (time.asctime(), tvo))
             try:
                 (rd, _, _) = select.select([self.sock], [], [], tvo)
             except select.error as msg:
                 raise Mode6Exception(SERR_SELECT)
+            if self.debug:
+                warn("At %s, read with timeout %d ends\n" % (time.asctime(), tvo))
 
             if not rd:
                 # Timed out.  Return what we have



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/976070deeb97c1373ee1d02cb0c2f55b45602ddf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161111/ea7ad790/attachment.html>


More information about the vc mailing list