bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#23658: 25.1.50; make-network-connection fails to connect to IPv6 add


From: Ken Brown
Subject: bug#23658: 25.1.50; make-network-connection fails to connect to IPv6 address on Windows
Date: Wed, 1 Jun 2016 10:54:43 -0400
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0

On 5/30/2016 7:44 PM, Francis Litterio wrote:

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)))

What happens if you add
                                           :family 'ipv6

Ken






reply via email to

[Prev in Thread] Current Thread [Next in Thread]