Skip to content

Commit 41830d4

Browse files
committed
cap wait time on NettyResponseFuture
the javadoc says this get will wait for at most the given timeout before returning, but as is this keeps waiting so long as content was received more recently than now-timeout.
1 parent a70bd89 commit 41830d4

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/main/java/com/ning/http/client/providers/netty/NettyResponseFuture.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,6 @@ public V get(long l, TimeUnit tu) throws InterruptedException, TimeoutException,
202202
latch.await();
203203
} else {
204204
expired = !latch.await(l, tu);
205-
if (!contentProcessed.get() && expired && ((System.currentTimeMillis() - touch.get()) <= l)) {
206-
return get(l, tu);
207-
}
208205
}
209206

210207
if (expired) {

0 commit comments

Comments
 (0)