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
Date 2022-03-29.08:47:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1648543639.58.0.923135953431.issue47149@roundup.psfhosted.org>
In-reply-to
Content
logging.DatagramHandler uses socket.sendto to send the messages. If the given address is a hostname rather than an IP address, it will do a DNS lookup every time.

I suspect that fixing issue 14855 will also fix this, since fixing that issue requires resolving the hostname to determine whether it is an IPv4 or IPv6 address to create a suitable socket.

I've run into this on 3.8, but tagging 3.10 since the code still looks the same.
History
Date User Action Args
2022-03-29 08:47:19bmerrysetrecipients: + bmerry
2022-03-29 08:47:19bmerrysetmessageid: <1648543639.58.0.923135953431.issue47149@roundup.psfhosted.org>
2022-03-29 08:47:19bmerrylinkissue47149 messages
2022-03-29 08:47:19bmerrycreate