✘pyntpq crash
Eric S. Raymond
esr at thyrsus.com
Fri Oct 28 04:30:37 UTC 2016
Gary E. Miller <gem at rellim.com>:
> Yo Eric!
>
> Whoops:
>
> # ntpq/pyntpq -p
> Traceback (most recent call last):
> File "ntpq/pyntpq", line 1441, in <module>
> interpreter.onecmd(cmd)
> File "/usr/lib64/python2.7/cmd.py", line 221, in onecmd
> return func(arg)
> File "ntpq/pyntpq", line 1051, in do_peers
> self.__dopeers(showall=False, mode="peers")
> File "ntpq/pyntpq", line 270, in __dopeers
> if not self.__dogetassoc():
> File "ntpq/pyntpq", line 173, in __dogetassoc
> self.peers = self.session.readstat()
> File "/u1/src/NTP/ntpsec/ntpq/ntp/packet.py", line 594, in readstat
> self.doquery(opcode=CTL_OP_READSTAT, associd=associd)
> File "/u1/src/NTP/ntpsec/ntpq/ntp/packet.py", line 581, in doquery
> res = self.getresponse(opcode, associd, not retry)
> File "/u1/src/NTP/ntpsec/ntpq/ntp/packet.py", line 461, in getresponse
> rawdata = polystr(self.sock.recv(4096))
> socket.error: [Errno 111] Connection refused
>
> This happens when I kill the ntpd on the localhost. Prolly easy to fix.
Trivial. Pushed. You should now get a "connection timed out" message.
--
<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 811 bytes
Desc: not available
URL: <http://lists.ntpsec.org/pipermail/devel/attachments/20161028/dae86578/attachment.bin>
More information about the devel
mailing list