Skip to content

Commit f6fd24c

Browse files
oleksiysoleksiys
oleksiys
authored and
oleksiys
committed
+ mark connection as non-keepalive only when keepAliveTimeout is 0
1 parent afee07d commit f6fd24c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ public GrizzlyFuture<Connection> connect() {
278278
@Override
279279
protected void onConnect(final Connection connection,
280280
final SingleEndpointPool<SocketAddress> pool) {
281-
if (pool.getKeepAliveTimeout(TimeUnit.MILLISECONDS) <= 0) {
281+
if (pool.getKeepAliveTimeout(TimeUnit.MILLISECONDS) == 0) {
282282
IS_NOT_KEEP_ALIVE.set(connection, Boolean.TRUE);
283283
}
284284
}

0 commit comments

Comments
 (0)