delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/12/01/04:51:41

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=qnQvmoVxXN1TZW0nq/vPA0T8Dgs06BGVz6dDi7xmBjJ+XFYCYjasC
Gad85dkzJt9TmHnDapGg0s/fJUfS+8LniwUvwAd2XT82spTAI+cLkUTatoCdHqnl
8p8gACLcwYcsN14w7wnkftcl4a8M2Qf7iLYCclYWcpi3zj111txokc=
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=5xGUHUlOEWs688/SrnSuAUQAR78=; b=sC+ZzIxK3TqtSHbaXKiKMTGkRnVW
6wWbjyUAkHNZksYs/fS7yXkXX0iSEGrT880X357oTcZiruZlH6Xw7ItMqn0JalR2
1UhNz6UInm5Zlud6BxfFuVNZy8BeWTE6STOjOsl+RvpkmAa5udZtV+cNePsyP/hN
5UI4ZpwS2x/x90w=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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-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
Date: Sat, 1 Dec 2018 10:51:24 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Something makes curl hang for 5 minutes after connection refused
Message-ID: <20181201095124.GM30649@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <8a710131-214c-badd-04a8-fc0899cf5511 AT gmail DOT com> <CAD8GWssBAH_KKXCC7jxTgCjS02KjXVb7LgkNvyriXJeE7cPSOg AT mail DOT gmail DOT com> <77f4e68b-4cd7-b939-7d36-688d1734df2a AT SystematicSw DOT ab DOT ca>
MIME-Version: 1.0
In-Reply-To: <77f4e68b-4cd7-b939-7d36-688d1734df2a@SystematicSw.ab.ca>
User-Agent: Mutt/1.9.2 (2017-12-15)
Note-from-DJ: This may be spam

--Pbi2MkfjSbXbI4MN
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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 AT 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 AT 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"

-----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--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019