Skip to content

Commit

Permalink
Merge pull request #2644 from murgatroid99/grpc-js_channelz_socket_co…
Browse files Browse the repository at this point in the history
…nnecting_handle_fix

grpc-js: Shutdown transport if a state change occurs while connecting
  • Loading branch information
murgatroid99 committed Jan 16, 2024
2 parents 442e3ea + 2b31f8c commit b8dc020
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/grpc-js/src/subchannel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,10 @@ export class Subchannel {
);
}
});
} else {
/* If we can't transition from CONNECTING to READY here, we will
* not be using this transport, so release its resources. */
transport.shutdown();
}
},
error => {
Expand Down

0 comments on commit b8dc020

Please sign in to comment.