You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2017/11/17 17:32:05 UTC
httpcomponents-core git commit: HTTPCLIENT-1880: added exception
message to TimeoutException thrown by AbstractNIOConnPool
Repository: httpcomponents-core
Updated Branches:
refs/heads/4.4.x 46719f32e -> 53d45ba16
HTTPCLIENT-1880: added exception message to TimeoutException thrown by AbstractNIOConnPool
Project: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/commit/53d45ba1
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/53d45ba1
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/53d45ba1
Branch: refs/heads/4.4.x
Commit: 53d45ba16c2ee452ccc5fe470e6bea5614fe4f5a
Parents: 46719f3
Author: Oleg Kalnichevski <ol...@apache.org>
Authored: Fri Nov 17 18:30:28 2017 +0100
Committer: Oleg Kalnichevski <ol...@apache.org>
Committed: Fri Nov 17 18:30:28 2017 +0100
----------------------------------------------------------------------
.../main/java/org/apache/http/nio/pool/AbstractNIOConnPool.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/53d45ba1/httpcore-nio/src/main/java/org/apache/http/nio/pool/AbstractNIOConnPool.java
----------------------------------------------------------------------
diff --git a/httpcore-nio/src/main/java/org/apache/http/nio/pool/AbstractNIOConnPool.java b/httpcore-nio/src/main/java/org/apache/http/nio/pool/AbstractNIOConnPool.java
index 92522ea..9117c62 100644
--- a/httpcore-nio/src/main/java/org/apache/http/nio/pool/AbstractNIOConnPool.java
+++ b/httpcore-nio/src/main/java/org/apache/http/nio/pool/AbstractNIOConnPool.java
@@ -408,7 +408,7 @@ public abstract class AbstractNIOConnPool<T, C, E extends PoolEntry<T, C>>
final long now = System.currentTimeMillis();
if (now > deadline) {
- request.failed(new TimeoutException());
+ request.failed(new TimeoutException("Connection lease request time out"));
return false;
}
@@ -528,7 +528,7 @@ public abstract class AbstractNIOConnPool<T, C, E extends PoolEntry<T, C>>
} else {
final long deadline = request.getDeadline();
if (now > deadline) {
- request.failed(new TimeoutException());
+ request.failed(new TimeoutException("Connection lease request time out"));
}
if (request.isDone()) {
it.remove();