mirror of
https://github.com/grpc/grpc-node.git
synced 2025-12-08 18:23:54 +00:00
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…
x
Reference in New Issue
Block a user