Skip to content

Commit

Permalink
fix (fabric8io#1767): change default ping interval to 3 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
igorcalabria committed Sep 16, 2019
1 parent ed9a7ce commit ee0a8a0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public class Config {
public static final Long DEFAULT_SCALE_TIMEOUT = 10 * 60 * 1000L;
public static final int DEFAULT_LOGGING_INTERVAL = 20 * 1000;
public static final Long DEFAULT_WEBSOCKET_TIMEOUT = 5 * 1000L;
public static final Long DEFAULT_WEBSOCKET_PING_INTERVAL = 1 * 1000L;
public static final Long DEFAULT_WEBSOCKET_PING_INTERVAL = 1 * 3000L;

public static final Integer DEFAULT_MAX_CONCURRENT_REQUESTS = 64;
public static final Integer DEFAULT_MAX_CONCURRENT_REQUESTS_PER_HOST = 5;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,13 @@ public void shouldBeUsedTokenSuppliedByProvider() throws Exception {
assertEquals("PROVIDER_TOKEN", config.getOauthToken());
}

@Test
public void shouldHonorDefaultWebsocketPingInterval() {
Config config = new ConfigBuilder().build();

assertEquals(3000L, config.getWebsocketPingInterval());
}

private void assertConfig(Config config) {
assertNotNull(config);
assertTrue(config.isTrustCerts());
Expand Down

0 comments on commit ee0a8a0

Please sign in to comment.