Skip to content

Commit e57da70

Browse files
committed
Asymetric number of invocations of onLease/onRelease in conn pool
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1735209 13f79535-47bb-0310-9956-ffa450edef68
1 parent 5699620 commit e57da70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httpcore/src/main/java/org/apache/http/pool/AbstractConnPool.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,10 +333,10 @@ public void release(final E entry, final boolean reusable) {
333333
pool.free(entry, reusable);
334334
if (reusable && !this.isShutDown) {
335335
this.available.addFirst(entry);
336-
onRelease(entry);
337336
} else {
338337
entry.close();
339338
}
339+
onRelease(entry);
340340
PoolEntryFuture<E> future = pool.nextPending();
341341
if (future != null) {
342342
this.pending.remove(future);

0 commit comments

Comments
 (0)