GNU bug report logs -
#40775
28.0.50; dns-query sometimes infloops
Previous Next
Reported by: Tassilo Horn <tsdh <at> gnu.org>
Date: Wed, 22 Apr 2020 17:21:02 UTC
Severity: normal
Tags: fixed, moreinfo
Found in version 28.0.50
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #16 received at 40775 <at> debbugs.gnu.org (full text, mbox):
References: <87eesfsaik.fsf <at> gnu.org> <87zhb2ywld.fsf <at> gnu.org> <87sg6l1req.fsf <at> gnus.org>
User-agent: mu4e 1.5.7; emacs 28.0.50
In-reply-to: <87sg6l1req.fsf <at> gnus.org>
Hi Lars,
>> For example, for me with emacs -Q
>>
>> (benchmark-run 1
>> (dns-query "_avatars-sec._tcp.zjp.codes" 'SRV)
>> (dns-query "_avatars._tcp.zjp.codes" 'SRV))
>>
>> consistently takes 20 seconds, 10 seconds for each (unsuccessful)
>> query. Those queries will be performed for every foo <at> zjp.codes mail
>> address in a message.
>
> These lookups should now be cached, so the delay should only happen
> the first time, which should help some.
The above benchmark is now twice as fast taking 10 seconds each time I
run it.
> And all the lookups should be asynchronous, I think, so there should
> be no hangs. (If I remember correctly.)
Yes, seems like gravatar.el now does asynchronous lookups.
> So I think everything in this bug report should work better now? Are
> you still seeing problems in this area (if you're still using
> libravatar)?
I'm using the default, so gravatar now. I've now tried with
--8<---------------cut here---------------start------------->8---
(setq gravatar-service 'libravatar)
(gravatar-retrieve "foobar <at> zjp.codes" (lambda (g &rest args)
(message "GRAVATAR: %S" g)))
--8<---------------cut here---------------end--------------->8---
which doesn't seem to block but pollutes the *Messages* buffer with
stuff like
--8<---------------cut here---------------start------------->8---
(fn STATUS)" nil t] 11 "
(fn URL)"] "r=g&d=404&s=32" format "%s/%s?%s" gravatar-hash] 7 "
(fn URL)"] "zjp.codes" ((("_avatars-sec" . "https") ("_avatars" . "http"))) (#2) inhibit-changing-match-data mapcar #[257 "A\"" [dns-get data] 4 "
(fn RECORD)"] dns-get answers #[257 "\"" [dns-get priority] 4 "
--8<---------------cut here---------------end--------------->8---
Not sure if it would do that when being used "normally", i.e., by Gnus
or some other client.
Anyway, in either case, it doesn't block anymore. Feel free to close
the bug.
Bye,
Tassilo
This bug report was last modified 4 years and 174 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.