Commit a43b68a
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>1 parent 90f7b16 commit a43b68a
1 file changed
+14
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
669 | 669 | | |
670 | 670 | | |
671 | 671 | | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
672 | 681 | | |
673 | 682 | | |
674 | 683 | | |
| |||
681 | 690 | | |
682 | 691 | | |
683 | 692 | | |
| 693 | + | |
684 | 694 | | |
685 | 695 | | |
686 | 696 | | |
| |||
951 | 961 | | |
952 | 962 | | |
953 | 963 | | |
| 964 | + | |
| 965 | + | |
954 | 966 | | |
955 | 967 | | |
956 | 968 | | |
| |||
1010 | 1022 | | |
1011 | 1023 | | |
1012 | 1024 | | |
| 1025 | + | |
| 1026 | + | |
1013 | 1027 | | |
1014 | 1028 | | |
1015 | 1029 | | |
| |||
0 commit comments