Skip to content

Commit 97de1e5

Browse files
author
Stephane Landelle
committed
Fix DefaultChannelPool.isTTLExpired, close AsyncHttpClient#721
1 parent 3ee5042 commit 97de1e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

providers/netty/src/main/java/org/asynchttpclient/providers/netty/channel/pool/DefaultChannelPool.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ private boolean isTTLExpired(Channel channel, long now) {
121121
return false;
122122

123123
ChannelCreation creation = channel2Creation.get(channel);
124-
return creation == null || now - creation.creationTime >= maxConnectionTTL;
124+
return creation != null && now - creation.creationTime >= maxConnectionTTL;
125125
}
126126

127127
private boolean isRemotelyClosed(Channel channel) {

0 commit comments

Comments
 (0)