We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 903cce1 commit db56e80Copy full SHA for db56e80
packages/grpc-js/src/server.ts
@@ -371,6 +371,13 @@ export class Server {
371
creds._getSettings()!
372
);
373
http2Server = http2.createSecureServer(secureServerOptions);
374
+ http2Server.on('secureConnection', (socket: TLSSocket) => {
375
+ /* These errors need to be handled by the user of Http2SecureServer,
376
+ * according to https://github.com/nodejs/node/issues/35824 */
377
+ socket.on('error', (e: Error) => {
378
+ this.trace('An incoming TLS connection closed with error: ' + e.message);
379
+ });
380
381
} else {
382
http2Server = http2.createServer(serverOptions);
383
}
0 commit comments