author | Junio C Hamano <gitster@pobox.com> | |
Tue, 20 Dec 2011 00:06:32 +0000 (16:06 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 20 Dec 2011 00:06:32 +0000 (16:06 -0800) |
* ew/keepalive:
enable SO_KEEPALIVE for connected TCP sockets
enable SO_KEEPALIVE for connected TCP sockets
1 | 2 | |||
---|---|---|---|---|
connect.c | patch | | diff1 | | diff2 | | blob | history |
diff --cc connect.c
index 2a0a0401af6e070125f1ae6d97004f4036af35f6,d725b1794f4a6d272a0cc649f57d99453255f8cc..c8d0ea5d75e89a6b15b62e7057e97947036e11ea
+++ b/connect.c
}
if (sockfd < 0)
- die("unable to connect a socket (%s)", strerror(saved_errno));
+ die("unable to connect to %s:\n%s", host, error_message.buf);
+ enable_keepalive(sockfd);
+
if (flags & CONNECT_VERBOSE)
fprintf(stderr, "done.\n");