We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afee07d commit f6fd24cCopy full SHA for f6fd24c
src/main/java/com/ning/http/client/providers/grizzly/ConnectionManager.java
@@ -278,7 +278,7 @@ public GrizzlyFuture<Connection> connect() {
278
@Override
279
protected void onConnect(final Connection connection,
280
final SingleEndpointPool<SocketAddress> pool) {
281
- if (pool.getKeepAliveTimeout(TimeUnit.MILLISECONDS) <= 0) {
+ if (pool.getKeepAliveTimeout(TimeUnit.MILLISECONDS) == 0) {
282
IS_NOT_KEEP_ALIVE.set(connection, Boolean.TRUE);
283
}
284
0 commit comments