From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 37981 invoked by alias); 1 Dec 2018 09:51:31 -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 37916 invoked by uid 89); 1 Dec 2018 09:51:29 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-96.2 required=5.0 tests=BAYES_50,GOOD_FROM_CORINNA_CYGWIN,KAM_BADIPHTTP,KAM_LAZY_DOMAIN_SECURITY,KAM_SHORT,RCVD_IN_DNSWL_NONE,WEIRD_PORT autolearn=ham version=3.3.2 spammy=lee, Lee, curl, rogue X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.126.130) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 01 Dec 2018 09:51:27 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1M2gt5-1gW3Gc0ssZ-004ER1 for ; Sat, 01 Dec 2018 10:51:25 +0100 Received: by calimero.vinschen.de (Postfix, from userid 500) id C2115A803CC; Sat, 1 Dec 2018 10:51:24 +0100 (CET) Date: Sat, 01 Dec 2018 09:51:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Something makes curl hang for 5 minutes after connection refused Message-ID: <20181201095124.GM30649@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <8a710131-214c-badd-04a8-fc0899cf5511@gmail.com> <77f4e68b-4cd7-b939-7d36-688d1734df2a@SystematicSw.ab.ca> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Pbi2MkfjSbXbI4MN" Content-Disposition: inline In-Reply-To: <77f4e68b-4cd7-b939-7d36-688d1734df2a@SystematicSw.ab.ca> User-Agent: Mutt/1.9.2 (2017-12-15) X-SW-Source: 2018-12/txt/msg00006.txt.bz2 --Pbi2MkfjSbXbI4MN Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2993 On Nov 30 20:42, Brian Inglis wrote: > On 2018-11-30 12:49, Lee wrote: > > On 11/30/18, Basin Ilya wrote: > >> Hi. > >> > >> Recently I noticed that `curl` does not fail immediately after connect= ion > >> refused, but waits for 5 minutes. > >> > >> This only happens on my machine and only with the `Cygwin` version of > >> `curl`. The mingw version is unaffected. > >> I tried downgrading curl, but it didn't help. I thought there's a rogue > >> setting in `/etc` or in home or maybe some environment variable, but I > >> couldn't find it. > >> > >> basin@BASIN /cygdrive/c/Users/basin > >> $ >/dev/null /usr/bin/curl -v http://127.0.0.1:2/ > >> * STATE: INIT =3D> CONNECT handle 0x80048658; line 1404 (connection > >> #-5000) > >> * Added connection 0. The cache now contains 1 members > >> * Trying 127.0.0.1... > >> * TCP_NODELAY set > >> * STATE: CONNECT =3D> WAITCONNECT handle 0x80048658; line 1456 (co= nnection > >> #0) > > <.. snip ..> > >> curl: (28) Connection timed out after 300145 milliseconds > >> > >> basin@BASIN /cygdrive/c/Users/basin > >> $ /usr/bin/curl --version > >> curl 7.59.0 (i686-pc-cygwin) libcurl/7.59.0 OpenSSL/1.0.2p zlib/1.= 2.11 > >> libidn2/2.0.4 libpsl/0.18.0 (+libidn2/2.0.2) libssh2/1.7.0 nghttp2/1.3= 1.0 > >=20 > >> Can someone try to reproduce it? > >=20 > > I get the same behavior: > > $ /usr/bin/curl -v http://127.0.0.1:2/ > > * STATE: INIT =3D> CONNECT handle 0x600057ad0; line 1404 (connection #-= 5000) > > * Added connection 0. The cache now contains 1 members > > * Trying 127.0.0.1... > > * TCP_NODELAY set > > * STATE: CONNECT =3D> WAITCONNECT handle 0x600057ad0; line 1456 (connec= tion #0) > > * Connection timed out after 300324 milliseconds > > * multi_done > > * stopped the pause stream! > > * Closing connection 0 > > * The cache now contains 0 members > > curl: (28) Connection timed out after 300324 milliseconds > >=20 > > $ /usr/bin/curl --version > > curl 7.59.0 (x86_64-unknown-cygwin) libcurl/7.59.0 OpenSSL/1.0.2p > > zlib/1.2.11 libidn2/2.0.4 libpsl/0.18.0 (+libidn2/2.0.2) libssh2/1.7.0 > > nghttp2/1.31.0 > >=20 > >=20 > > I also get an almost immediate 'failed to connect' notice on windows: > > C:\>C:\UTIL\curl\curl.exe -v http://127.0.0.1:2/ > > * Trying 127.0.0.1... > > * TCP_NODELAY set > > * connect to 127.0.0.1 port 2 failed: Connection refused > > * Failed to connect to 127.0.0.1 port 2: Connection refused > > * Closing connection 0 > > curl: (7) Failed to connect to 127.0.0.1 port 2: Connection refused > >=20 > > with either version of curl: > > C:\>where curl > > C:\UTIL\curl\curl.exe > > C:\Windows\System32\curl.exe >=20 > Ditto all the way! >=20 > Could this be caused by network speed improvements made to Cygwin a while= back? > Or were those patches never sent/received/applied from Daniel Havey (MS W= indows > Program Manager for Transports and IP)? Somebody may want to bisect this... Corinna --=20 Corinna Vinschen Cygwin Maintainer --Pbi2MkfjSbXbI4MN Content-Type: application/pgp-signature; name="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlwCWZwACgkQ9TYGna5E T6Bz5w/7B4yBxpv/2jfiy0V/eYyzhcH0nWbTauZe0z1mjJgl+cZd01G9gU3NEH6X lOI8+Ky5VvhgKL+Zhu7pFNIJ48D5wvusCO9GGIRuZGNyKteFI2j19AhviRmGiBoq EY98As2SfdGIk19oXvIvo+03btquPR2cTmURlbBp43VSI58jgdnlxU/MRAteD8Dg GNq0gGjuW3F1HaynFlqYy6IxtcNbIa0rO24EUN+gC8wFY49aGWvKzslVlhbspPUc 1MpVWtkufRlsZk3r/yXq1PRPT0XMYQXg1VYFubeWIhomKFyDVu+6m12CPBHqryuU Ul9KNell04GLeyML85LFbjsufqus6uKlAfWks7fmjVPNKqVAq220DVHSmPX1/dbF IZpPmYRij9mr6HzJOPjUBtkgOfNZ9yb9j6E+qoWXobzzxVVe9mRvy34vvCYcSt4X 8D+li04C4AayPY6cWnvoY2UAsA2LrhyCHF9dyRfRxRsFMqzsZs3Ws3/z0nTx4D9i NJoWBfC8XZquNCOsxmpbz7f004D2NidSSvHYjXsmDAaloi8uCOWtvoxi1ploX9C1 HJBGr/axst9X/S2GyXxEZAkzBGmdsj4AaKLWmG3N9EVZLjYjVoHcudKrbcCQYjNh qyGR5DzfrcqHflR+zmPt8AWyZAOMr9zxKap/e8qSRjYzDZgjfok= =BIbo -----END PGP SIGNATURE----- --Pbi2MkfjSbXbI4MN--