asyncio version of ntptime? #12967
Unanswered
bulletmark
asked this question in
Libraries & Drivers
Replies: 2 comments 4 replies
-
Such a version would need to address a known problem. The line addr = socket.getaddrinfo(host, 123)[0][-1] blocks because nobody has yet written a nonblocking DNS lookup (AFAIK of course). |
Beta Was this translation helpful? Give feedback.
2 replies
-
See e.g. asy_udp_client and asy_ntp_client This will block during name lookup but provides async NTP time setting. Edit: fixed second link. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Does anybody know of an implementation of
ntptime
for asyncio? i.e. so I can:Beta Was this translation helpful? Give feedback.
All reactions