File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @grpc/grpc-js" ,
3
- "version" : " 1.9.9 " ,
3
+ "version" : " 1.9.10 " ,
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 @@ -194,17 +194,18 @@ class Http2Transport implements Transport {
194
194
} ) ;
195
195
session . once (
196
196
'goaway' ,
197
- ( errorCode : number , lastStreamID : number , opaqueData : Buffer ) => {
197
+ ( errorCode : number , lastStreamID : number , opaqueData ? : Buffer ) => {
198
198
let tooManyPings = false ;
199
199
/* See the last paragraph of
200
200
* https://github.com/grpc/proposal/blob/master/A8-client-side-keepalive.md#basic-keepalive */
201
201
if (
202
202
errorCode === http2 . constants . NGHTTP2_ENHANCE_YOUR_CALM &&
203
+ opaqueData &&
203
204
opaqueData . equals ( tooManyPingsData )
204
205
) {
205
206
tooManyPings = true ;
206
207
}
207
- this . trace ( 'connection closed by GOAWAY with code ' + errorCode ) ;
208
+ this . trace ( 'connection closed by GOAWAY with code ' + errorCode + ' and data ' + opaqueData ?. toString ( ) ) ;
208
209
this . reportDisconnectToOwner ( tooManyPings ) ;
209
210
}
210
211
) ;
You can’t perform that action at this time.
0 commit comments