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:to:from:subject:message-id:date:mime-version :content-type:content-transfer-encoding; q=dns; s=default; b=mPJ 0x/DBr3ibxgOA7zJe/p5Mcfso9ajtOlBwJnq8n1rUt+z9gvbjo/oxqSa2q5/TXfO ccQhgugObhYbaojWJpi/q3fhETp9teooqZ+YACE/Wr3nc7FDxtBKf0trfIuL6HPb iS+gf1Zj2P633G1PR9fVAROQwWxDVx8uOwYFfpCM= 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:to:from:subject:message-id:date:mime-version :content-type:content-transfer-encoding; s=default; bh=Gdfgh3271 LCJPlYQYI9IoLSkD80=; b=yo50IxtIY5HsjjOKvjGX6B7CIJE/u446gbCSfbzQm 1sOYmDK1ggeeoGerT6Tz/DkN8S1kwIjZ7OdnwVipcuw3bYMF5avbnYZaEaXVDkO0 ZaYEEtI/HtU/W3SE50hoAicIfiLJL1hnNnbS1CTi5T/+cZ4YL1YLdly5Js6glNtm nY= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=0.1 required=5.0 tests=BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,KAM_BADIPHTTP,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_PASS,WEIRD_PORT autolearn=no version=3.3.2 spammy=Speed, openssl, rogue, OpenSSL X-HELO: mail-ed1-f49.google.com To: cygwin AT cygwin DOT com From: Basin Ilya Subject: Something makes curl hang for 5 minutes after connection refused Message-ID: <8a710131-214c-badd-04a8-fc0899cf5511@gmail.com> Date: Fri, 30 Nov 2018 14:03:31 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Note-from-DJ: This may be spam 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 AT 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)       % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current                                      Dload  Upload   Total   Spent    Left  Speed       0     0    0     0    0     0      0      0 --:--:--  0:04:59 --:--:--     0* Connection timed out after 300145 milliseconds     * multi_done     * stopped the pause stream!       0     0    0     0    0     0      0      0 --:--:--  0:05:00 --:--:--     0     * Closing connection 0     * The cache now contains 0 members     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.31.0     Release-Date: 2018-03-14     Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp     Features: AsynchDNS Debug IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL Metalink Can someone try to reproduce it? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple