enable asynchronous dkimpy
Bug #1847002 reported by
dkg
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dkimpy |
Fix Released
|
Wishlist
|
Scott Kitterman |
Bug Description
dkimpy appears to block on DNS requests. if it is used in an asyncio context, a slow DNS response could potentially block all the other code in an async process from working.
Given that the mathematics and verification steps don't appear to need to block, it would be great if either:
* dkimpy could adopt aiodns (https:/
* dkimpy could provide an API that lets the user handle the DNS fetch themselves somehow (e.g. the user could query the message for the name of the DNS record needed, and then the user could pass the DNS record into the verification function)
Changed in dkimpy: | |
status: | Triaged → In Progress |
To post a comment you must log in.
Since, as you know, I use Debian, I try to focus on using things that are actively maintained there. https:/ /tracker. debian. org/pkg/ aiodns does not appear to qualify.
All of the DNS queries are in dkim.dnsplug.py, so it shouldn't be too hard to override that if you want to.
I think this is a reasonable goal to provide as an option, but I'd like to see aiodns actually maintained.