Re: TCP_KEEPINVTL and TCP_KEEPIDLE - Socket Keep Alives not working

2020-07-13 Thread Cary Lewis via Cygwin
Corinna, thank you. I have tested and confirmed that the patched cywin1.dll, and include files /usr/include/netinet/tcp.h and /usr/include/cygwin/socket.h, work as expected after I re-compile and link curl (specifically lib/connect.c). I look forward to seeing this patch included in a future

Re: TCP_KEEPINVTL and TCP_KEEPIDLE - Socket Keep Alives not working

2020-07-02 Thread Cary Lewis via Cygwin
That's amazing, thanks. We'll have to try to recompile curl under cygwin to confirm that it keeps up the constants, and then does the right posix calls. I will grab the files, and try to have this tested and report back to you. Take care, Cary Lewis On Wed, Jul 1, 2020 at 3:51 PM Corinna

Re: TCP_KEEPINVTL and TCP_KEEPIDLE - Socket Keep Alives not working

2020-07-01 Thread Corinna Vinschen
On Jun 30 18:53, Corinna Vinschen wrote: > 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

Re: TCP_KEEPINVTL and TCP_KEEPIDLE - Socket Keep Alives not working

2020-06-30 Thread Corinna Vinschen
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

Re: TCP_KEEPINVTL and TCP_KEEPIDLE - Socket Keep Alives not working

2020-06-30 Thread Cary Lewis via Cygwin
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

Re: TCP_KEEPINVTL and TCP_KEEPIDLE - Socket Keep Alives not working

2020-06-30 Thread Corinna Vinschen
On Jun 7 14:56, Cary Lewis via Cygwin wrote: > Thanks very much for the reply - I will wait for Corinna's take on this as > well - the patch shouldn't be too hard. It's not that easy, but not too hard either: - Windows 10 1709 and later actually support the TCP_KEEPIDLE, TCP_KEEPINTVL and

Re: TCP_KEEPINVTL and TCP_KEEPIDLE - Socket Keep Alives not working

2020-06-07 Thread Cary Lewis via Cygwin
Thanks very much for the reply - I will wait for Corinna's take on this as well - the patch shouldn't be too hard. In fact the source code for curl in the lib/connect.c file has code to enable the winsock options, so hopefully that code could be helpful. I imagine there must be a translation

Re: TCP_KEEPINVTL and TCP_KEEPIDLE - Socket Keep Alives not working

2020-06-07 Thread Ken Brown via Cygwin
On 6/7/2020 9:20 AM, Cary Lewis via Cygwin wrote: These constants are usually defined in netinet/tcp.h but are not defined anywhere in cygwin. > As a result there does not seem to be a way to enable the socket level keep alives in cygwin. One result of this is curl's --keepalive-time option