[Git][NTPsec/ntpsec][master] Yet more instrumentation.
Eric S. Raymond
gitlab at mg.gitlab.com
Fri Nov 11 13:41:41 UTC 2016
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
b2dc3bc3 by Eric S. Raymond at 2016-11-11T08:40:46-05:00
Yet more instrumentation.
- - - - -
1 changed file:
- pylib/packet.py
Changes:
=====================================
pylib/packet.py
=====================================
--- a/pylib/packet.py
+++ b/pylib/packet.py
@@ -713,13 +713,13 @@ class Mode6Session:
tvo = self.secondary_timeout / 1000
if self.debug:
- warn("At %s, read with timeout %d begins\n" % (time.asctime(), tvo))
+ warn("At %s, select 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))
+ warn("At %s, select with timeout %d ends\n" % (time.asctime(), tvo))
if not rd:
# Timed out. Return what we have
@@ -735,6 +735,8 @@ class Mode6Session:
% ("not ", "")[seenlastfrag])
raise Mode6Exception(SERR_INCOMPLETE)
+ if self.debug:
+ warn("At %s, socket read begins\n" % time.asctime())
rawdata = polystr(self.sock.recv(4096))
if self.debug:
warn("Received %d octets\n" % len(rawdata))
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/b2dc3bc35dd580e0d5e6273580f2c40051ceb2ac
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161111/3ab1a5cd/attachment.html>
More information about the vc
mailing list