Skip to content

Commit ba2aea4

Browse files
committed
Polish contribution
Closes gh-4456
1 parent 41300c3 commit ba2aea4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/ShellProperties.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,14 +244,14 @@ public static class Ssh extends CrshShellProperties {
244244
private Integer port = 2000;
245245

246246
/**
247-
* Number of milliseconds after which unused connections are closed.
247+
* Number of milliseconds after user will be prompted to login again.
248248
*/
249-
private Integer idleTimeout = 600000;
249+
private Integer authTimeout = 600000;
250250

251251
/**
252-
* Number of milliseconds after user will be prompted to login again.
252+
* Number of milliseconds after which unused connections are closed.
253253
*/
254-
private Integer authTimeout = 600000;
254+
private Integer idleTimeout = 600000;
255255

256256
@Override
257257
protected void applyToCrshShellConfig(Properties config) {

spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/CrshAutoConfigurationTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,13 @@ public void testSshConfigurationCustomTimeouts() {
137137
MockEnvironment env = new MockEnvironment();
138138
env.setProperty("shell.ssh.enabled", "true");
139139
env.setProperty("shell.ssh.auth-timeout", "300000");
140-
env.setProperty("shell.ssh.idle-timeout", "300000");
140+
env.setProperty("shell.ssh.idle-timeout", "400000");
141141
load(env);
142142

143143
PluginLifeCycle lifeCycle = this.context.getBean(PluginLifeCycle.class);
144144

145145
assertEquals("300000", lifeCycle.getConfig().getProperty("crash.ssh.auth_timeout"));
146-
assertEquals("300000", lifeCycle.getConfig().getProperty("crash.ssh.idle_timeout"));
146+
assertEquals("400000", lifeCycle.getConfig().getProperty("crash.ssh.idle_timeout"));
147147
}
148148

149149
private void load(MockEnvironment env) {

0 commit comments

Comments
 (0)