Timeout expiredTimeout = request.getReceiveTimeout();
if (!expiredTimeout.isCancelled()) {
cancelAllTimeouts();
ReadTimeoutException timeoutException =
new ReadTimeoutException(
"Timed out waiting " + getReceiveTimeout() + " to receive response");
fireChannelErrorCallback(request.getListener(), timeoutException);
}
}