Skip to content

Commit

Permalink
mirror of #395
Browse files Browse the repository at this point in the history
  • Loading branch information
simplynaveen20 committed Dec 21, 2021
1 parent f6921f6 commit 5980117
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ private Options() {
this.bufferPageSize = 8192;
this.connectionTimeout = null;
this.idleChannelTimeout = Duration.ZERO;
this.idleEndpointTimeout = Duration.ofSeconds(70L);
this.idleEndpointTimeout = Duration.ofHours(1);
this.maxBufferCapacity = 8192 << 10;
this.maxChannelsPerEndpoint = 10;
this.maxRequestsPerChannel = 30;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -605,10 +605,12 @@ public void operationComplete(Future<Channel> future) {
}

private void fail(Throwable cause) {
if (this.acquired) {
this.pool.decrementAndRunTaskQueue();
} else {
this.pool.runTaskQueue();
if (!this.pool.isClosed()) {
if (this.acquired) {
this.pool.decrementAndRunTaskQueue();
} else {
this.pool.runTaskQueue();
}
}
this.originalPromise.setFailure(cause);
}
Expand Down

0 comments on commit 5980117

Please sign in to comment.