Skip to content

Commit f883565

Browse files
author
oleksiys
committed
[1.9.x] + change keep-alive check interval to 1 second
1 parent b8a63c7 commit f883565

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/ning/http/client/providers/grizzly/ConnectionManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ class ConnectionManager {
7878
.maxConnectionsTotal(config.getMaxConnections())
7979
.maxConnectionsPerEndpoint(config.getMaxConnectionsPerHost())
8080
.keepAliveTimeout(config.getPooledConnectionIdleTimeout(), TimeUnit.MILLISECONDS)
81+
.keepAliveCheckInterval(1, TimeUnit.SECONDS)
8182
.connectorHandler(defaultConnectionHandler)
8283
.connectionTTL(config.getConnectionTTL(), TimeUnit.MILLISECONDS)
8384
.failFastWhenMaxSizeReached(true);

0 commit comments

Comments
 (0)