delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/06/30/12:54:44

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 941A63857033
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1593536043;
bh=/ERPW2pBTd3D6xJbiDwElCJp19NZataz0jEw9u0TXKg=;
h=Date:From:To:Subject:References:In-Reply-To:List-Id:
List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
Reply-To:From;
b=iI5UU+kaPZciOnTmWELJlt+ByfrdsKYWDf4Mmud8HCV+1G7pr93r/FKzG36VFSZsF
hP0O/V9ImeOla/vmgf7Hihqj5klORBYHcZHqesWLIOsrXXMAlF9lVjrfmR2VfTDDDW
NZ60UTShBi73rkoNGXE2dZF8xXj29vcMUso0+IDo=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 7B2C93858D37
Authentication-Results: sourceware.org;
dmarc=none (p=none dis=none) header.from=cygwin.com
Authentication-Results: sourceware.org;
spf=fail smtp.mailfrom=corinna-cygwin AT cygwin DOT com
Date: Tue, 30 Jun 2020 18:53:58 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: TCP_KEEPINVTL and TCP_KEEPIDLE - Socket Keep Alives not working
Message-ID: <20200630165358.GG3499@calimero.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <CAEF1h+WHsGXzSykQ0G3aXG=8jY5VmpYQQiYNP7DjHJTS1Bkpsw AT mail DOT gmail DOT com>
<ba71f855-276d-9d45-5c78-6d0a91dc57dd AT cornell DOT edu>
<CAEF1h+UuQmXz-ntG6YMed+DKFgikJT_aJN5Hu94ZnZ8_LGxMjQ AT mail DOT gmail DOT com>
<20200630111215 DOT GE3499 AT calimero DOT vinschen DOT de>
<CAEF1h+X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XxCezCP8sP3XhMofrVhFymQQpY3af9MNkd+H
Jhq1I3ZMSfyEwgj38h4xi9TC1GKlq/0QOs185+eO3k+PeI+3lNf7BuCPyCB8mwU/prU2QOm5C
HAl+x0YQ2CtQytl/Xv515GBsV3NtBiQQ5RBYej3/dv07iHvrk9WrYiRWCdGaOoWzXbVpY0rPF
YNrWlCwb1CwnTG8pxwIoiWIR+xNeCWqFr0f+7ryzyVeqmlj5c4rE6j8HK+ZBF/g96zxAwr7ds
PKePUtHscDeTWFMo8jYQ==
X-Spam-Status: No, score=-99.3 required=5.0 tests=BAYES_00,
GOOD_FROM_CORINNA_CYGWIN, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS,
RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NEUTRAL,
TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Reply-To: cygwin AT cygwin DOT com
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 05UGsVPr008408

On Jun 30 09:46, Cary Lewis via Cygwin wrote:
> Thanks for the reply. The answer to your question is that the 2 hour keep
> alive was not sufficient for a particular use case I encountered.
> 
> I was trying to use curl under cygwin to access a very slow REST endpoint
> that was taking up to 8 minutes to generate download before any data flowed
> back to the client. This caused the server to abort the socket.
> 
> Accessing the endpoint in chrome or firefox revealed that they set a
> keepalive to 45 seconds, which kept the server happy.
> 
> Attempting to set --keepalive-time=45 in cygwin's curl didn't work, and
> wireshark revealed that no keepalives were being sent.
> 
> I will attempt to patch cygwin, I got the build to work. Can you point me
> in the right direction, in terms of where the socket calls get mapped to
> the winsock calls?

Actually, while I'm usually happy to take contributions, you don't have
to dig into that yourself.  I already have a few local patches in the
loop changing some of the affected code.  I have a good idea what's
required to add the keep-alive socket options to that code, so just lay
back and stay tuned for now.

> On a separate note, what are your thoughts on the new windows WSL2 release?
> Do you think this will have long term implications for cygwin?

Same as WSL, I guess ¯\_(ツ)_/¯


Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
--
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

- Raw text -


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