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

Re: [PATCH] http: enable keepalive on TCP sockets

From
Daniel Stenberg <daniel@haxx.se>
Date
Oct 13, 2013, 09:44 UTC
Message-ID
<alpine.DEB.2.00.1310131142080.22193@tvnag.unkk.fr>
In-Reply-To
<20131012222939.GA24255@dcvr.yhbt.net>
On Sat, 12 Oct 2013, Eric Wong wrote:
> This is a follow up to commit e47a8583a20256851e7fc882233e3bd5bf33dc6e 
> (enable SO_KEEPALIVE for connected TCP sockets).

Just keep in mind that TCP keep-alive is enabled in awkwardly many different ways on different systems and this patch only supports one of them. Feel free to take inspiration from libcurl's source code for doing this. See:

   https://github.com/bagder/curl/blob/master/lib/connect.c#L108
-- 
  / daniel.haxx.se
Previous: Eric WongNext: Eric Wong
Message 2 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.