Skip to content

Commit cae4488

Browse files
committed
[AHC-107] Active uploads that take longer than configured request timeout get cancelled
o Touched future upon operation progress which empirically improves the situation but whether this solves the issue entirely is beyond my current understanding of the internals
1 parent b49e537 commit cae4488

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1834,6 +1834,7 @@ public void operationComplete(ChannelFuture cf) {
18341834
}
18351835

18361836
public void operationProgressed(ChannelFuture cf, long amount, long current, long total) {
1837+
future.touch();
18371838
if (ProgressAsyncHandler.class.isAssignableFrom(asyncHandler.getClass())) {
18381839
ProgressAsyncHandler.class.cast(asyncHandler).onContentWriteProgress(amount, current, total);
18391840
}

0 commit comments

Comments
 (0)