X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=vrD4gBWowgWd/0+P/BH+mja0rxEsfOBrFNCJDVj7l1ULnNqeICDk7 4+EuCoe4zSIInZ/vzxhLXp63+lSUENGMUfxU/E12T8vPLbSOuJl+nJUJInZApNpl OCuV4TY0WKygdnKLuQBQo30lQaCHNK1cot3DCXHe/+iqw7Fh6YWHjo= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=25z09ufFyYML1p+6IDnUjMHSEh0=; b=gS0lKv8ldqTjw35+iHuAx81y62hA vst6ZBmjlafr7wEj/MtSZItElY99bLaNxdCnZ/bW2TdPJZPRhrR8xwdyE5TKzQjF x/nuru4Og2XgqgEYVZhPEXt3Do46K2yDpaVgjYGUSJkF2hNTSD/UKCwWhmmPDErT s4AY9Gae8zCVQPU= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: calimero.vinschen.de Date: Mon, 16 Jun 2014 19:58:25 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: cygwin not setting errno on "Connection refused" errors Message-ID: <20140616175825.GJ23700@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20140616131144 DOT GD23700 AT calimero DOT vinschen DOT de> <47eab44c8f2e3d571c22a72d8441b7a7 AT mail DOT gmail DOT com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZYOWEO2dMm2Af3e3" Content-Disposition: inline In-Reply-To: <47eab44c8f2e3d571c22a72d8441b7a7@mail.gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) --ZYOWEO2dMm2Af3e3 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Jun 16 19:43, Christoph H. Hochstaetter wrote: > On June 16 15:12 Corinna Vinschen wrote: > >On May 30 19:01, Luke White wrote: > >> I just updated cygwin today, and I've noticed that errno is not being > >> set when there's a connection refused error. This appears to be true > >> for INET and UNIX domain sockets. > >> > >> For example: > >> > >> $ ssh -p 12345 localhost > >> ssh: connect to host localhost port 12345: No error > >> > >> > >> Notice how it reports "No error" instead of "Connection refused". > > > >https://cygwin.com/ml/cygwin/2014-06/msg00172.html > > > > > >Corinna >=20 > Works as expected again with today's snapshot (couldn't test dup'd sockets > quickly, sorry): >=20 > [user AT host ~] $ ssh -p 4711 localhost > ssh: connect to host localhost port 4711: Connection refused > [user AT host ~] $ ssh www.google.com > ssh: connect to host www.google.com port 22: Connection timed out >=20 > Thx Thank you for testing, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --ZYOWEO2dMm2Af3e3 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJTnzBBAAoJEPU2Bp2uRE+g9RgP/0KYUuRyOTBuPg/7z4uDM7v+ OdqGZQwvyuWAQ5/HY1GF4exBG8alGGH5HWT1uSquDy5W9GLrGclpnZhM4PLPmD9u KY4OlJd5xBz4hom8Eo6AqRoylmqwehI7QqbqYlGz6mVjKUAF/hRWtDmwSE+Z0p0z LrGWpLm/Ll9nJmbcR1ZCWic6xXMoIKlf7lT6fCmM7kOkHQ2iZHA8wZmr7WltyjO2 jSzzKjoK3k6rVWJE5G9vteAGlY4UREJOrSvsWpVYYy/uQpsv2TOHP9i5jYr6/4HV +of+NvmkzAU1W474bjTRRxikQrJvvUADkJuPQdxuzHi4PWKVvXi9VKeFJ/7ebiD6 JBinVy8LsGvOxUnjrjEYXyFU01pk0kiseJAmU8P3GnSvisPUSW/D/RHZ5dRK/HVf 3vCr13ulvJIoA8QEfevPJtaUIV0NMN6p97hr5k5SelUI7X6rNP2EkZ2QQOGJlvrC dkzvArVX9L5WA4wjx6nxDDdH60WxFBCwRaKGlBGh46tpZe2nmgqrclqNYPVnzv1h 9+zU4CaPjh5ugMbRvTJ1w39pzuLoDXigWKV25tuw3a67LcEhmjYZszIju2/N9ytZ Efr2aysExyUKH0YP0YFxP05TcQASGbGnebUNx8DCRIIFvVRNnl6WaPyXPkMC8fOz mFlIg8Q3YzpR4HFXYabD =X0D6 -----END PGP SIGNATURE----- --ZYOWEO2dMm2Af3e3--