This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author bmerry
Recipients bmerry, eric.smith
Date 2022-03-29.17:49:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1648576175.77.0.644528210321.issue47149@roundup.psfhosted.org>
In-reply-to
Content
> If you don’t look it up every time, how do you deal with DNS timeouts?

Do you mean expiring the IP address when the TTL is reached? I suppose that could be an issue for a long-running service, and I don't have a good answer to that. Possibly these days with services meshes and load-balancers it is less of a concern since a logging server can move without changing its IP address.

But it's important for a logging system not to block the service doing the logging (which is one reason for using UDP in the first place). I only discovered this issue because of some flaky DNS servers that would occasionally take several seconds to answer a query, and block the whole asyncio event loop while it waited.

At a minimum it would be useful to document it, so that you know it's something to be concerned about when using DatagramHandler.
History
Date User Action Args
2022-03-29 17:49:35bmerrysetrecipients: + bmerry, eric.smith
2022-03-29 17:49:35bmerrysetmessageid: <1648576175.77.0.644528210321.issue47149@roundup.psfhosted.org>
2022-03-29 17:49:35bmerrylinkissue47149 messages
2022-03-29 17:49:35bmerrycreate