File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @grpc/grpc-js" ,
3
- "version" : " 1.5.1 " ,
3
+ "version" : " 1.5.2 " ,
4
4
"description" : " gRPC Library for Node - pure JS implementation" ,
5
5
"homepage" : " https://grpc.io/" ,
6
6
"repository" : " https://github.com/grpc/grpc-node/tree/master/packages/grpc-js" ,
Original file line number Diff line number Diff line change @@ -371,6 +371,13 @@ export class Server {
371
371
creds . _getSettings ( ) !
372
372
) ;
373
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
+ } ) ;
374
381
} else {
375
382
http2Server = http2 . createServer ( serverOptions ) ;
376
383
}
You can’t perform that action at this time.
0 commit comments