From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23615: 25.1.50; Which platforms can safely use getsockopt(,,SO_ERROR,,)? Date: Sat, 28 May 2016 20:48:45 +0300 Message-ID: <83pos6xede.fsf@gnu.org> References: <8337p63y2a.fsf@gnu.org> <8080c018-3cc8-c97e-0654-dc98be95a7ef@cornell.edu> <83twhixrvn.fsf@gnu.org> <8906f53e-95c4-cf5d-0e93-56a9f080a1ea@cornell.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1464457774 21721 80.91.229.3 (28 May 2016 17:49:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 28 May 2016 17:49:34 +0000 (UTC) Cc: 23615@debbugs.gnu.org To: Ken Brown Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 28 19:49:24 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 1b6iMS-0006LR-Jh for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 May 2016 19:49:20 +0200 Original-Received: from localhost ([::1]:53832 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6iMR-0002rH-QC for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 May 2016 13:49:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48616) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6iMD-0002jn-Cr for bug-gnu-emacs@gnu.org; Sat, 28 May 2016 13:49:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b6iMA-0004Y1-Ki for bug-gnu-emacs@gnu.org; Sat, 28 May 2016 13:49:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60907) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6iMA-0004Xx-H4 for bug-gnu-emacs@gnu.org; Sat, 28 May 2016 13:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b6iMA-0000VF-Bm for bug-gnu-emacs@gnu.org; Sat, 28 May 2016 13:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 May 2016 17:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23615 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23615-submit@debbugs.gnu.org id=B23615.14644577371922 (code B ref 23615); Sat, 28 May 2016 17:49:02 +0000 Original-Received: (at 23615) by debbugs.gnu.org; 28 May 2016 17:48:57 +0000 Original-Received: from localhost ([127.0.0.1]:45011 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b6iM4-0000Uv-M5 for submit@debbugs.gnu.org; Sat, 28 May 2016 13:48:56 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57603) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b6iM3-0000Uk-KT for 23615@debbugs.gnu.org; Sat, 28 May 2016 13:48:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b6iLu-0004Vv-8Z for 23615@debbugs.gnu.org; Sat, 28 May 2016 13:48:50 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41082) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6iLu-0004V4-5Q; Sat, 28 May 2016 13:48:46 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2423 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1b6iLp-0006au-Nb; Sat, 28 May 2016 13:48:43 -0400 In-reply-to: <8906f53e-95c4-cf5d-0e93-56a9f080a1ea@cornell.edu> (message from Ken Brown on Sat, 28 May 2016 13:18:27 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:118814 Archived-At: > Cc: 23615@debbugs.gnu.org > From: Ken Brown > Date: Sat, 28 May 2016 13:18:27 -0400 > > > With MinGW, I get this instead: > > > > D:\usr\eli\data>socket_test > > Server listening on port 2213. > > Attempting client connection...success. > > > > Do we have to have a failure in this case? Or is the above a valid > > outcome? > > It's a valid outcome. I think the reason the connection is refused on > Cygwin (and apparently on RHEL 7.2) is that the first addrinfo structure > returned by getaddrinfo has an IPv6 address. There's no reason to > expect this to happen on all platforms. OK, thanks. So hopefully others will chime in with results from other platforms.