diff options
author | Colin Watson <cjwatson@debian.org> | 2010-02-27 14:05:10 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2010-02-27 14:05:10 +0000 |
commit | 8dcc7c5ef45cf5032dca7a308ffe17d3935e62d5 (patch) | |
tree | 2e0d8058bdfc24a60a20c5bcbfd1075ef1048ff3 /debian/patches/keepalive-extensions.patch | |
parent | e44a1fb6e8e59e67e5c8b6e83c0d8566d146aad9 (diff) |
Convert to source format 3.0 (quilt).
Diffstat (limited to 'debian/patches/keepalive-extensions.patch')
-rw-r--r-- | debian/patches/keepalive-extensions.patch | 108 |
1 files changed, 108 insertions, 0 deletions
diff --git a/debian/patches/keepalive-extensions.patch b/debian/patches/keepalive-extensions.patch new file mode 100644 index 000000000..cb9c2823c --- /dev/null +++ b/debian/patches/keepalive-extensions.patch | |||
@@ -0,0 +1,108 @@ | |||
1 | Index: b/readconf.c | ||
2 | =================================================================== | ||
3 | --- a/readconf.c | ||
4 | +++ b/readconf.c | ||
5 | @@ -133,6 +133,7 @@ | ||
6 | oSendEnv, oControlPath, oControlMaster, oHashKnownHosts, | ||
7 | oTunnel, oTunnelDevice, oLocalCommand, oPermitLocalCommand, | ||
8 | oVisualHostKey, oUseRoaming, oZeroKnowledgePasswordAuthentication, | ||
9 | + oProtocolKeepAlives, oSetupTimeOut, | ||
10 | oDeprecated, oUnsupported | ||
11 | } OpCodes; | ||
12 | |||
13 | @@ -246,6 +247,8 @@ | ||
14 | #else | ||
15 | { "zeroknowledgepasswordauthentication", oUnsupported }, | ||
16 | #endif | ||
17 | + { "protocolkeepalives", oProtocolKeepAlives }, | ||
18 | + { "setuptimeout", oSetupTimeOut }, | ||
19 | |||
20 | { NULL, oBadOption } | ||
21 | }; | ||
22 | @@ -845,6 +848,8 @@ | ||
23 | goto parse_flag; | ||
24 | |||
25 | case oServerAliveInterval: | ||
26 | + case oProtocolKeepAlives: /* Debian-specific compatibility alias */ | ||
27 | + case oSetupTimeOut: /* Debian-specific compatibility alias */ | ||
28 | intptr = &options->server_alive_interval; | ||
29 | goto parse_time; | ||
30 | |||
31 | @@ -1233,8 +1238,13 @@ | ||
32 | options->rekey_limit = 0; | ||
33 | if (options->verify_host_key_dns == -1) | ||
34 | options->verify_host_key_dns = 0; | ||
35 | - if (options->server_alive_interval == -1) | ||
36 | - options->server_alive_interval = 0; | ||
37 | + if (options->server_alive_interval == -1) { | ||
38 | + /* in batch mode, default is 5mins */ | ||
39 | + if (options->batch_mode == 1) | ||
40 | + options->server_alive_interval = 300; | ||
41 | + else | ||
42 | + options->server_alive_interval = 0; | ||
43 | + } | ||
44 | if (options->server_alive_count_max == -1) | ||
45 | options->server_alive_count_max = 3; | ||
46 | if (options->control_master == -1) | ||
47 | Index: b/ssh_config.5 | ||
48 | =================================================================== | ||
49 | --- a/ssh_config.5 | ||
50 | +++ b/ssh_config.5 | ||
51 | @@ -128,8 +128,12 @@ | ||
52 | If set to | ||
53 | .Dq yes , | ||
54 | passphrase/password querying will be disabled. | ||
55 | +In addition, the | ||
56 | +.Cm ServerAliveInterval | ||
57 | +option will be set to 300 seconds by default. | ||
58 | This option is useful in scripts and other batch jobs where no user | ||
59 | -is present to supply the password. | ||
60 | +is present to supply the password, | ||
61 | +and where it is desirable to detect a broken network swiftly. | ||
62 | The argument must be | ||
63 | .Dq yes | ||
64 | or | ||
65 | @@ -946,8 +950,15 @@ | ||
66 | will send a message through the encrypted | ||
67 | channel to request a response from the server. | ||
68 | The default | ||
69 | -is 0, indicating that these messages will not be sent to the server. | ||
70 | +is 0, indicating that these messages will not be sent to the server, | ||
71 | +or 300 if the | ||
72 | +.Cm BatchMode | ||
73 | +option is set. | ||
74 | This option applies to protocol version 2 only. | ||
75 | +.Cm ProtocolKeepAlives | ||
76 | +and | ||
77 | +.Cm SetupTimeOut | ||
78 | +are Debian-specific compatibility aliases for this option. | ||
79 | .It Cm SmartcardDevice | ||
80 | Specifies which smartcard device to use. | ||
81 | The argument to this keyword is the device | ||
82 | @@ -993,6 +1004,12 @@ | ||
83 | other side. | ||
84 | If they are sent, death of the connection or crash of one | ||
85 | of the machines will be properly noticed. | ||
86 | +This option only uses TCP keepalives (as opposed to using ssh level | ||
87 | +keepalives), so takes a long time to notice when the connection dies. | ||
88 | +As such, you probably want | ||
89 | +the | ||
90 | +.Cm ServerAliveInterval | ||
91 | +option as well. | ||
92 | However, this means that | ||
93 | connections will die if the route is down temporarily, and some people | ||
94 | find it annoying. | ||
95 | Index: b/sshd_config.5 | ||
96 | =================================================================== | ||
97 | --- a/sshd_config.5 | ||
98 | +++ b/sshd_config.5 | ||
99 | @@ -919,6 +919,9 @@ | ||
100 | .Pp | ||
101 | To disable TCP keepalive messages, the value should be set to | ||
102 | .Dq no . | ||
103 | +.Pp | ||
104 | +This option was formerly called | ||
105 | +.Cm KeepAlive . | ||
106 | .It Cm UseDNS | ||
107 | Specifies whether | ||
108 | .Xr sshd 8 | ||