Skip to content

Commit cc3d57f

Browse files
author
Stephane Landelle
committed
Have idle timeout also expose remote ip, just like request timeout AsyncHttpClient#548
1 parent 35c629c commit cc3d57f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

providers/netty/src/main/java/org/asynchttpclient/providers/netty/request/timeout/IdleConnectionTimeoutTimerTask.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,9 @@ public void run(Timeout timeout) throws Exception {
5757

5858
if (durationBeforeCurrentIdleConnectionTimeout <= 0L) {
5959
// idleConnectionTimeout reached
60+
String message = "Idle connection timeout to " + nettyResponseFuture.getChannelRemoteAddress() + " of " + idleConnectionTimeout + " ms";
6061
long durationSinceLastTouch = now - nettyResponseFuture.getLastTouch();
61-
expire("Idle connection timeout of " + idleConnectionTimeout + " ms", durationSinceLastTouch);
62+
expire(message, durationSinceLastTouch);
6263
nettyResponseFuture.setIdleConnectionTimeoutReached();
6364

6465
} else if (currentIdleConnectionTimeoutInstant < requestTimeoutInstant) {

0 commit comments

Comments
 (0)