(query-dns): Use sit-for to time instead of
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Fri, 19 Nov 2004 00:50:11 +0000 (00:50 +0000)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Fri, 19 Nov 2004 00:50:11 +0000 (00:50 +0000)
accept-process-output, since that doesn't seem to work on udp
sockets.

lisp/ChangeLog
lisp/dns.el

index ce4a3a5..23a318d 100644 (file)
@@ -1,3 +1,9 @@
+2004-11-19  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * dns.el (query-dns): Use sit-for to time instead of
+       accept-process-output, since that doesn't seem to work on udp
+       sockets. 
+
 2004-11-17  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * rfc2047.el (rfc2047-encode-region): Encode bogus delimiters.
index 8b84e17..b2001b1 100644 (file)
@@ -386,6 +386,7 @@ If REVERSEP, look up an IP address."
                      tcp-p))
          (while (and (zerop (buffer-size))
                      (> times 0))
+           (sit-for (/ step 1000.0))
            (accept-process-output process 0 step)
            (decf times step))
          (ignore-errors