File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @grpc/grpc-js" ,
3
- "version" : " 1.3.5 " ,
3
+ "version" : " 1.3.6 " ,
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 @@ -254,6 +254,12 @@ export function getProxiedConnection(
254
254
reject ( ) ;
255
255
} ) ;
256
256
} else {
257
+ trace (
258
+ 'Successfully established a plaintext connection to ' +
259
+ options . path +
260
+ ' through proxy ' +
261
+ proxyAddressString
262
+ ) ;
257
263
resolve ( {
258
264
socket,
259
265
realTarget : parsedTarget ,
Original file line number Diff line number Diff line change @@ -303,6 +303,11 @@ export class Subchannel {
303
303
}
304
304
305
305
private createSession ( proxyConnectionResult : ProxyConnectionResult ) {
306
+ if ( proxyConnectionResult . realTarget ) {
307
+ trace ( this . subchannelAddressString + ' creating HTTP/2 session through proxy to ' + proxyConnectionResult . realTarget ) ;
308
+ } else {
309
+ trace ( this . subchannelAddressString + ' creating HTTP/2 session' ) ;
310
+ }
306
311
const targetAuthority = getDefaultAuthority (
307
312
proxyConnectionResult . realTarget ?? this . channelTarget
308
313
) ;
@@ -403,6 +408,7 @@ export class Subchannel {
403
408
} ) ;
404
409
session . once ( 'close' , ( ) => {
405
410
if ( this . session === session ) {
411
+ trace ( this . subchannelAddressString + ' connection closed' ) ;
406
412
this . transitionToState (
407
413
[ ConnectivityState . CONNECTING ] ,
408
414
ConnectivityState . TRANSIENT_FAILURE
You can’t perform that action at this time.
0 commit comments