Re: [PATCH] daemon: enable SO_KEEPALIVE for all sockets
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 25, 2016, 22:44 UTC
- Message-ID
- <xmqq37p5zrjk.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <20160525031505.5720-1-e@80x24.org>
Eric Wong <e@80x24.org> writes:
Show 8 quoted lines
> While --init-timeout and --timeout options exist and I've never > run git-daemon without them, some users may forget to set them > and encounter hung daemon processes when connections fail. > Enable socket-level timeouts so the kernel can send keepalive > probes as necessary to detect failed connections. > > Signed-off-by: Eric Wong <e@80x24.org> > ---
This makes sense as a follow-up to e47a8583 (enable SO_KEEPALIVE for connected TCP sockets, 2011-12-06), I think.