git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] http: use curl's tcp keepalive if available

From
Jeff King <peff@peff.net>
Date
Oct 15, 2013, 05:00 UTC
Message-ID
<20131015050028.GA8150@sigill.intra.peff.net>
In-Reply-To
<20131015045814.GA12312@dcvr.yhbt.net>
On Tue, Oct 15, 2013 at 04:58:14AM +0000, Eric Wong wrote:
Show 13 quoted lines
> > Subject: http: use curl's tcp keepalive if available
> [...]
> Tested-by: Eric Wong <normalperson@yhbt.net>
> on curl 7.21.0 and 7.26.0, confirmed via strace:
> 
> 	setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0
> 
> I can also confirm 7.26.0 adds:
> 
> 	setsockopt(fd, SOL_TCP, TCP_KEEPIDLE, [60], 4) = 0
> 	setsockopt(fd, SOL_TCP, TCP_KEEPINTVL, [60], 4) = 0
> 
> to the strace on Linux.
Thanks, I didn't actually do any testing myself.
Show 7 quoted lines
> Case 2 works fine on my Debian Squeeze system.
> 
> > Now we have an extra option:
> > 
> >   c. Tell them to upgrade curl. :)
> 
> Yes, I keep forgetting I still have a Debian Squeeze machine :x

I am more concerned with Windows, which may not compile your original patch at all.

-Peff
Previous: Eric WongNext: Eric Wong
Message 8 of 9 in “http: enable keepalive on TCP sockets”
  1. http: enable keepalive on TCP socketsEric Wong, Oct 12, 2013
  2. Daniel StenbergOct 13, 2013
  3. Eric WongOct 14, 2013
  4. Jeff KingOct 14, 2013
  5. Eric WongOct 14, 2013
  6. http: use curl's tcp keepalive if availableJeff King, Oct 15, 2013
  7. Eric WongOct 15, 2013
  8. Jeff KingOct 15, 2013
  9. Eric WongOct 15, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.