]> git.eshelyaron.com Git - emacs.git/commit
Fix hang when running dns-query with no working internet
authorRobert Pluim <rpluim@gmail.com>
Mon, 22 Feb 2021 13:47:41 +0000 (14:47 +0100)
committerRobert Pluim <rpluim@gmail.com>
Mon, 22 Feb 2021 14:48:06 +0000 (15:48 +0100)
commit934dcc21572e3f0e5357d84050e04b23d41a18f9
tree52065e4c4a6483d149a4abd47f947b981b1162c1
parent0c170c64b178da1df05d953d993e992b8bdc2502
Fix hang when running dns-query with no working internet

* lisp/net/dns.el (dns-set-servers): reduce the timeout and retry
count when using 'nslookup' for "localhost".
(dns-query): Check to see if we actually managed to initiate a dns
request before starting a busy-wait for the result.
lisp/net/dns.el