mirror of https://github.com/grpc/grpc-node.git
Start with http2 sessions unrefed in case no streams are ever created
This commit is contained in:
parent
b0f06d56c2
commit
0cf6981eaf
|
@ -46,6 +46,7 @@ export class Http2SubChannel extends EventEmitter implements SubChannel {
|
|||
userAgent: string, channelArgs: Partial<ChannelOptions>) {
|
||||
super();
|
||||
this.session = http2.connect(target, connectionOptions);
|
||||
this.session.unref();
|
||||
this.session.on('connect', () => {
|
||||
this.emit('connect');
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue