From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 46839 invoked by alias); 31 Aug 2018 08:35:21 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 46306 invoked by uid 89); 31 Aug 2018 08:34:27 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-101.2 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=Hx-languages-length:2575, foreign, claim, highly X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.17.24) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 31 Aug 2018 08:34:25 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.183]) with ESMTPSA (Nemesis) id 0MDgWE-1g8FHM2PvS-00H3Jb for ; Fri, 31 Aug 2018 10:34:22 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id 4CCF4A81961; Fri, 31 Aug 2018 10:34:21 +0200 (CEST) Date: Fri, 31 Aug 2018 16:47:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Cygwin Dirmngr and TBB for windows Message-ID: <20180831083421.GE6350@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <0d735703-6936-1b4a-74d0-f03692a8ddbd@mail.com> <6064620b-7ea1-0c46-d8f8-5de024909c69@gmail.com> <20180830150725.GC6350@calimero.vinschen.de> <5cb27938-3a8a-8f15-4a77-af7a754d8557@mail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="JlJsEFsx9RQyiX4C" Content-Disposition: inline In-Reply-To: <5cb27938-3a8a-8f15-4a77-af7a754d8557@mail.com> User-Agent: Mutt/1.9.2 (2017-12-15) X-SW-Source: 2018-08/txt/msg00392.txt.bz2 --JlJsEFsx9RQyiX4C Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2662 On Aug 30 21:20, john doe wrote: > On 8/30/2018 5:07 PM, Corinna Vinschen wrote: > > On Aug 30 14:35, Marco Atzeri wrote: > > > Am 30.08.2018 um 11:30 schrieb john doe: > > > > On 7/11/2018 10:11 AM, john doe wrote: > > > > > Hi, > > > > >=20 > > > > > I'm trying to get Cygwin dirmngr to work with=C2=A0 Tor Browser f= or Windows. > > > > >=20 > > > > > Following some discussion on the gnupg user list it looks like th= at > > > > > the connect(2) function in Cygwin does not return the proper error > > > > > code: > > > > >=20 > > > > > https://lists.gnupg.org/pipermail/gnupg-users/2018-July/060768.ht= ml > > > > >=20 > > > > > On the above link one of the dev suggest that connect(2) returns > > > > > EPERMS instead of ECONREFUSED. > > > > >=20 > > > > > If ECONREFUSED is not returned when port 9050 is queried the > > > > > fallback code in dirmngr will not be executed and port 9150 will > > > > > never be used. > > > > >=20 > > > > > Using dirmngr on Debian with TBBfor linux works as expected. > > > > >=20 > > > > > Can anyone confirm that and subcequently make Cygwin return the > > > > > proper error code? > > > > >=20 > > > > > Any help is appriciated. > > > > >=20 > > > >=20 > > > > As any one has been able to confirm that the issue is present in Cy= gwin > > > > code? > > > > I didn't see anything regarding this issue in the beta version of C= ygwin > > > > or did I mist it? > > >=20 > > >=20 > > > a Simple Test Case will help to verify the claim. > >=20 > > Full ACK. > >=20 > > > connect is not expected to return EPERM > > > http://pubs.opengroup.org/onlinepubs/9699919799/functions/connect.html > >=20 > > Cygwin does not explicitely generate EPERM anywhere near > > AF_INET/AF_INET6 code. Nor does a Winsock error exist which > > gets gonverted to EPERM. > >=20 > > The *only* way to generate EPERM is if an underlying Winsock function > > returns an error code not handled by Cygwin. I never encountered > > that case, though. Thus, a STC is highly appreciated. > >=20 > >=20 > > Corinna > >=20 >=20 > Thanks both for your answer and your willingness to look into this. >=20 > STC: > 1) Have Tor Browser for Windows up and running. > 2) Start dirmngr: > $ mkdir ${HOME}/try > $ dirmngr --homedir ${HOME}/try -vvv --debug-all --server --use-tor > -> KS_GET -- 0x6C6ACD6417B3ACB1 That's not a STC. STC means a simple, self-contained piece of (ideally) C code to reproduce the issue. I simply don't have the time to hunt down something in lots of foreign code. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --JlJsEFsx9RQyiX4C Content-Type: application/pgp-signature; name="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAluI/Y0ACgkQ9TYGna5E T6B5VA//dGZiK6+I3igle6lie+hgkkqwzjCzabImB8i9PNMT4tLplORT4w+n8XA0 uzEKuncVLrJRnKoSmRytJMh+z8LV5C0tqRB/aHONA25iZurgZPbM7XqsPerLMuEi OA7dBB1fckU6Bafv+tOdydbLPC/sTpREgEPtl3iS5evY0e4Or5gESo27TH9vPfWY 1h+GiQnViEdeRkV5uu3DaWfSe8Sjh6dZJ7YzHJxWa7tOmbZONuKAy4PIrm8oTcCl lX0i9i2EYIm3CBDV3NLjLPrdzTcnYVbw6djwgyk+ZXcumQOTeLWW5niB4namEQTa ZK8m7jSPRTwJrr7QVEaH2RER2hiMXb6Q/oXUIYjW61CW8qCdiuwIym+Yb0R4hwjz MH37fYWJ7Z6DDbyvBUdov0dv1vOHsL9NjclBCQHhQ/YiVoUphXJTL83cNjgKf6Md tXnrRGBvDDeTZs29T2Re8m0hJ6smrZwdMw0tlv+xGnH1B/Mzkzu/9PTmHiGjTvSc ZG3s+npMZLN6ukqmAnLuTr3Zbzy9+0LQa3/LqutTHFQvTWL/9er2ZyFKC94WNj8O G1tr4QDM2o2bCDb3j06cT422mre8DOJR4JE2GJbIxT9ey+hmSG+l7zjKbUg/vl/l CD4aAfebffvWmBicYId2ND9tJCllr4oq0WCFlMxxekKQDs78jg0= =XK9z -----END PGP SIGNATURE----- --JlJsEFsx9RQyiX4C--