From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by sourceware.org (Postfix) with ESMTPS id D54B4386EC62 for ; Thu, 12 Nov 2020 15:35:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D54B4386EC62 Received: by mail-lf1-x12d.google.com with SMTP id f11so9064557lfs.3 for ; Thu, 12 Nov 2020 07:35:20 -0800 (PST) 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) Received: from [192.168.1.152] ([94.229.108.206]) by smtp.googlemail.com with ESMTPSA id k23sm606003ljh.95.2020.11.12.07.35.16 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 Nov 2020 07:35:17 -0800 (PST) Subject: Re: Something makes curl hang for 5 minutes after connection refused From: basinilya@gmail.com 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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Nov 2020 15:35:22 -0000 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 >>