From: Eric Wong Date: Tue, 6 Dec 2011 04:39:36 +0000 (+0000) Subject: enable SO_KEEPALIVE for connected TCP sockets X-Git-Tag: v1.7.8.2~17^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/e47a8583a20256851e7fc882233e3bd5bf33dc6e?hp=e47a8583a20256851e7fc882233e3bd5bf33dc6e enable SO_KEEPALIVE for connected TCP sockets Sockets may never receive notification of some link errors, causing "git fetch" or similar processes to hang forever. Enabling keepalive messages allows hung processes to error out after a few minutes/hours depending on the keepalive settings of the system. This is a problem noticed when running non-interactive cronjobs to mirror repositories using "git fetch". Signed-off-by: Eric Wong Signed-off-by: Junio C Hamano ---