GNU bug report logs -
#78920
30.1; Process sentinel is not called when DNS lookup fails
Previous Next
Full log
Message #29 received at 78920 <at> debbugs.gnu.org (full text, mbox):
> From: Shawn Henson <shawn <at> shenso.name>
> Cc: Eli Zaretskii <eliz <at> gnu.org>, 78920 <at> debbugs.gnu.org
> Date: Sun, 29 Jun 2025 17:22:36 -0400
>
> Robert Pluim <rpluim <at> gmail.com> writes:
>
> > I wonder what Emacs does for ":nowait t" without async DNS, when the
> > connect fails. Iʼd expect it to call the sentinel with a "failed"
> > status.
>
> Is there a trivial way to test this?
Run the recipe on MS-Windows ;-)
The result is that we signal an error:
Debugger entered--Lisp error: (error "thisisnotarealhostname/80 No such host is known. ")
make-network-process(:name "dns-fail-test" :buffer "dns-fail-test-buf" :host "thisisnotarealhostname" :service 80 :nowait t :sentinel #f(lambda (process event) [t] (print event)))
(let ((my-test-proc (make-network-process :name "dns-fail-test" :buffer "dns-fail-test-buf" :host "thisisnotarealhostname" :service 80 :nowait t :sentinel #'(lambda (process event) (print event))))) (message "process status: %s" (process-status my-test-proc)))
(progn (let ((my-test-proc (make-network-process :name "dns-fail-test" :buffer "dns-fail-test-buf" :host "thisisnotarealhostname" :service 80 :nowait t :sentinel #'(lambda (process event) (print event))))) (message "process status: %s" (process-status my-test-proc))))
eval((progn (let ((my-test-proc (make-network-process :name "dns-fail-test" :buffer "dns-fail-test-buf" :host "thisisnotarealhostname" :service 80 :nowait t :sentinel #'(lambda ... ...)))) (message "process status: %s" (process-status my-test-proc)))) t)
and there's no process shown by list-processes.
This bug report was last modified 5 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.