Skip to content

Commit 19e8b49

Browse files
committed
update a comment in the scheduleTimeouts method.
1 parent 6ca14a1 commit 19e8b49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

providers/netty3/src/main/java/org/asynchttpclient/netty/request/NettyRequestSender.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ private void scheduleTimeouts(NettyResponseFuture<?> nettyResponseFuture) {
364364

365365
int readTimeoutValue = config.getReadTimeout();
366366
if (readTimeoutValue != -1 && readTimeoutValue < requestTimeoutInMs) {
367-
// no need for a readTimeout that's less than the requestTimeout
367+
// use readTimeout if it is less than the requestTimeout
368368
Timeout readTimeout = newTimeout(new ReadTimeoutTimerTask(nettyResponseFuture, this, timeoutsHolder, requestTimeoutInMs, readTimeoutValue), readTimeoutValue);
369369
timeoutsHolder.readTimeout = readTimeout;
370370
}

0 commit comments

Comments
 (0)