Using Emacs built from the latest sources (obtained by cloning the Git
repo at git://git.savannah.gnu.org/emacs.git), make-network-connection
fails when connecting to an IPv6 address from a Windows machine that has
an IPv6 address assigned via DHCP. To reproduce:
1. On Windows 7 SP1 (with all updates installed), launch Emacs using:
emacs.exe -Q
2. Evaluate the following form in the *scratch* buffer:
(progn
(defun my-sentinel (proc event)
(with-current-buffer "*scratch*"
(save-excursion
(goto-char (point-max))
(insert (format "\n>> proc = '%s', status = '%s', event = '%s'"
proc (process-status proc) event)))))
(defun my-filter (proc str)
(with-current-buffer "*scratch*"
(save-excursion
(goto-char (point-max))
(insert (format "\n>> proc = '%s', status = '%s', str = '%s'"
proc (process-status proc) str)))))
;; These IP addresses are both for host rajaniemi.freenode.net.
(let* ((ipv6-host "2001:708:40:2001:a822:baff:fec4:2428")
(ipv4-host "195.148.124.79")
(process (make-network-process :name "zzz"
:buffer nil
:host ipv6-host
;; :host ipv4-host
:service 6667
:nowait t)))