mirror of https://github.com/grpc/grpc-node.git
Don't query the config selector for calls that have ended
This commit is contained in:
parent
7de0d08e29
commit
e3106b99ca
|
@ -509,6 +509,11 @@ export class ChannelImplementation implements Channel {
|
||||||
}
|
}
|
||||||
|
|
||||||
private tryGetConfig(stream: Http2CallStream, metadata: Metadata) {
|
private tryGetConfig(stream: Http2CallStream, metadata: Metadata) {
|
||||||
|
if (stream.getStatus() !== null) {
|
||||||
|
/* If the stream has a status, it has already finished and we don't need
|
||||||
|
* to take any more actions on it. */
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (this.configSelector === null) {
|
if (this.configSelector === null) {
|
||||||
/* This branch will only be taken at the beginning of the channel's life,
|
/* This branch will only be taken at the beginning of the channel's life,
|
||||||
* before the resolver ever returns a result. So, the
|
* before the resolver ever returns a result. So, the
|
||||||
|
|
Loading…
Reference in New Issue