Skip to content

Commit

Permalink
Mirror of #395 (#397)
Browse files Browse the repository at this point in the history
according to Naveen tests pass locally, issue in downloading the emulator.

* mirror of #395

* need to rerun the ci again after agent upgrade from ububtu 16 to 20

* need to rerun the ci again after agent upgrade from ububtu 16 to 20

* adding space to trigger ci which is in struct state

Co-authored-by: Mohammad Derakhshani <moderakh@users.noreply.github.com>
  • Loading branch information
simplynaveen20 and moderakh committed Dec 22, 2021
1 parent 983dc9e commit 33f09ac
Show file tree
Hide file tree
Showing 2 changed files with 8 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,11 +605,14 @@ 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 33f09ac

Please sign in to comment.