Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
daemon: enable SO_KEEPALIVE for all sockets
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> Signed-off-by: Junio C Hamano <gitster@pobox.com>
- Loading branch information