X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 570463A16052
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1605195324;
	bh=yvzKxNlRJm2dAiWHjkJJjVAn2qUai74BZnyH/iIjI+A=;
	h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
	 From;
	b=BQ4tJLS6GXlYpVkcPLbNIkv0aul5LVuLoTKU/8XPkJKnK0p7Vibcse55hs0ajZc8V
	 dGi+SR38ErMOa2WoehSXDGzVEWQhw+IUF0V5GkRWe8oJ3qYwuksERQkjN7FMe5q5vv
	 ZDd/7OqPS1FEmFeT5nWzXIuyynkUCSEkDINxv+I8=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D54B4386EC62
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:subject:from:to:references:message-id:date
 :user-agent:mime-version:in-reply-to:content-language;
 bh=PuXu2eDgZg9Vuz+k9dF+ekAHMQAjr6nUcm2MPWfntT4=;
 b=hd0NUhUvhLroywJtNKw8cd8UDk1K1kunbiYFk4sXAxIUqC25lxg9XxatxzEh6djz1E
 PTPR5RxDiPPvZopxgv9vxG/75H5JIvShLpgSOb2WD4k5IGX8AFdQn3H6kBoNERC85vuf
 /lkRI5RaRUhL+QJ3C0LJbCQRDGKCUpvrJjbOs3jsKHUt/7r60hWBljiiD7n+Tb+x7e1a
 rlDZZ1RIUwORYf4tgAAPk+vL5Ot9TeuZVUAaFx5y3/A/mGNqwlM+FJ1o6zLj1rpUCVrv
 XhNkIh2TvaWNSsa9bbJvCbWiOTcAZB4ulho0wbHeFPWR2nIdBrN8Q4WRhMrbZn6a50Zb
 epLg==
X-Gm-Message-State: AOAM532wLV+KQWCQhGMkd8tSfnvJYPw/hAQwVK3eE/OqJkZ/O83GHSgf
 qhH342F+2QeG6G0X/PuI0zdNYC031uQ=
X-Google-Smtp-Source: ABdhPJzYAbJLU8yg+M2L/mRrDlrq9GSabdA2EV2ucYqRwwh0AVs+G1n4eLiQlLtVZnpCDX8JFVW52g==
X-Received: by 2002:a05:6512:2033:: with SMTP id
 s19mr8431996lfs.462.1605195317955; 
 Thu, 12 Nov 2020 07:35:17 -0800 (PST)
Subject: Re: Something makes curl hang for 5 minutes after connection refused
To: cygwin@cygwin.com
References: <20181201095124.GM30649@calimero.vinschen.de>
 <8621444e-d644-7197-62c7-f3b10a2fb02e@gmail.com>
Message-ID: <264d5bd7-6758-a023-f2fa-c8b2918de275@gmail.com>
Date: Thu, 12 Nov 2020 18:35:16 +0300
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101
 Thunderbird/78.4.1
MIME-Version: 1.0
In-Reply-To: <8621444e-d644-7197-62c7-f3b10a2fb02e@gmail.com>
Content-Language: en-US
X-Spam-Status: No, score=2.3 required=5.0 tests=BAYES_00, BODY_8BITS,
 DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM,
 HTML_MESSAGE, KAM_BADIPHTTP, KAM_SHORT, NICE_REPLY_A, NUMERIC_HTTP_ADDR,
 RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP,
 WEIRD_PORT autolearn=no autolearn_force=no version=3.4.2
X-Spam-Level: **
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
 server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Ilya Basin via Cygwin <cygwin@cygwin.com>
Reply-To: basinilya@gmail.com
Content-Type: text/plain; charset="utf-8"
Errors-To: cygwin-bounces@cygwin.com
Sender: "Cygwin" <cygwin-bounces@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 0ACFZpAg021589

This looks fixed now. Thanks.

On 15.09.2019 10:07, Basin Ilya wrote:
> Hi.
> Any update on this?
>
> 01.12.2018 12:51, Corinna Vinschen пишет:
>> 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 connection
>>>>> 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 => 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 => WAITCONNECT handle 0x80048658; line 1456 (connection
>>>>> #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.31.0
>>>>> Can someone try to reproduce it?
>>>> I get the same behavior:
>>>> $ /usr/bin/curl -v http://127.0.0.1:2/
>>>> * STATE: INIT => 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 => WAITCONNECT handle 0x600057ad0; line 1456 (connection #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
>>>>
>>>> $ /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
>>>>
>>>>
>>>> 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
>>>>
>>>> with either version of curl:
>>>> C:\>where curl
>>>> C:\UTIL\curl\curl.exe
>>>> C:\Windows\System32\curl.exe
>>> Ditto all the way!
>>>
>>> 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 Windows
>>> Program Manager for Transports and IP)?
>> Somebody may want to bisect this...
>>
>>
>> Corinna
>>
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

