mirror of https://github.com/grpc/grpc-java.git
rls: forcefully close rls channel when lb is shutdown
RLS RPC deadline is configured by service config, and could be extremely long. When RLS lb is shutdown, any pending RLS PRC should be cancelled. Now using shutdownNow() to forcefully close the RLS channel.
This commit is contained in:
parent
b1daad6f30
commit
2cd45e7a24
|
|
@ -253,7 +253,7 @@ final class CachingRlsLbClient {
|
|||
linkedHashLruCache.close();
|
||||
// TODO(creamsoup) maybe cancel all pending requests
|
||||
pendingCallCache.clear();
|
||||
rlsChannel.shutdown();
|
||||
rlsChannel.shutdownNow();
|
||||
rlsPicker.close();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue