From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Brown Newsgroups: gmane.emacs.bugs Subject: bug#23606: 25.1.50; "localhost" vs. "127.0.0.1" Date: Tue, 24 May 2016 14:35:17 -0400 Message-ID: References: <87posbv0dk.fsf@Rainer.invalid> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1464114989 6302 80.91.229.3 (24 May 2016 18:36:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 May 2016 18:36:29 +0000 (UTC) Cc: Lars Magne Ingebrigtsen To: Achim Gratz , 23606@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 24 20:36:20 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b5HBk-00018y-1h for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 May 2016 20:36:20 +0200 Original-Received: from localhost ([::1]:54875 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5HBf-0002lS-UX for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 May 2016 14:36:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5HBY-0002jA-EM for bug-gnu-emacs@gnu.org; Tue, 24 May 2016 14:36:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b5HBS-0003bR-Gi for bug-gnu-emacs@gnu.org; Tue, 24 May 2016 14:36:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52637) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5HBS-0003bN-D3 for bug-gnu-emacs@gnu.org; Tue, 24 May 2016 14:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b5HBS-0004k4-5K for bug-gnu-emacs@gnu.org; Tue, 24 May 2016 14:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ken Brown Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 24 May 2016 18:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23606 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23606-submit@debbugs.gnu.org id=B23606.146411492618187 (code B ref 23606); Tue, 24 May 2016 18:36:02 +0000 Original-Received: (at 23606) by debbugs.gnu.org; 24 May 2016 18:35:26 +0000 Original-Received: from localhost ([127.0.0.1]:36741 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b5HAs-0004jG-EH for submit@debbugs.gnu.org; Tue, 24 May 2016 14:35:26 -0400 Original-Received: from limerock02.mail.cornell.edu ([128.84.13.242]:41003) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b5HAq-0004j2-J6 for 23606@debbugs.gnu.org; Tue, 24 May 2016 14:35:24 -0400 X-CornellRouted: This message has been Routed already. Original-Received: from authusersmtp.mail.cornell.edu (granite3.serverfarm.cornell.edu [10.16.197.8]) by limerock02.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id u4OIZI5m011716; Tue, 24 May 2016 14:35:18 -0400 Original-Received: from [10.128.136.11] (dhcp-gs-2059.eduroam.cornell.edu [10.128.136.11]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id u4OIZGMd023256 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Tue, 24 May 2016 14:35:17 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 In-Reply-To: <87posbv0dk.fsf@Rainer.invalid> X-PMX-Cornell-Gauge: Gauge=XX X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:118635 Archived-At: On 5/24/2016 1:20 PM, Achim Gratz wrote: > Ken Brown writes: >> The test echo-server-nowait in test/lisp/net/network-stream-tests.el >> fails on Cygwin, but it passes if I create the client process using >> "127.0.0.1" instead of "localhost": > > This could be a case where it makes a difference if the IPv6 (::1) or > IPv4 address is returned (first) for localhost. IIRC, Windows and > up-to-date Linux prefer IPv6 by default. If so, it would likely be > better to fix the parts of the code that assumes return of IPv4 > addresses only. You're right. In the test in question, IPv4 is specified for the server but not for the client. The test passes on Cygwin if I specify IPv4 for the client also: diff --git a/test/lisp/net/network-stream-tests.el b/test/lisp/net/network-stream-tests.el index c9b7cc7..f30c92a 100644 --- a/test/lisp/net/network-stream-tests.el +++ b/test/lisp/net/network-stream-tests.el @@ -145,6 +145,7 @@ server-process-filter :buffer (generate-new-buffer "*foo*") :host "localhost" :nowait t + :family 'ipv4 :service port))) (should (eq (process-status proc) 'connect)) (while (eq (process-status proc) 'connect) Glenn, does this also fix the problem on RHEL 7.2? Ken