Skip to content

Commit 51b10cc

Browse files
author
Stephane Landelle
committed
Fix currentIdleConnectionTimeoutInstant computation
1 parent 0952fd2 commit 51b10cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/ning/http/client/providers/netty/timeout/IdleConnectionTimeoutTimerTask.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public void run(Timeout timeout) throws Exception {
4444

4545
long now = millisTime();
4646

47-
long currentIdleConnectionTimeoutInstant = idleConnectionTimeout - nettyResponseFuture.getLastTouch();
47+
long currentIdleConnectionTimeoutInstant = idleConnectionTimeout + nettyResponseFuture.getLastTouch();
4848
long durationBeforeCurrentIdleConnectionTimeout = currentIdleConnectionTimeoutInstant - now;
4949

5050
if (durationBeforeCurrentIdleConnectionTimeout <= 0L) {

0 commit comments

Comments
 (0)