Skip to content

Commit

Permalink
Wait on shell port instead of heart beat port
Browse files Browse the repository at this point in the history
  • Loading branch information
DonJayamanne committed Oct 11, 2021
1 parent e66061c commit a30bf10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions news/2 Fixes/7334.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Changes to how we check if kernels have started (as a result now suppor kernels such as [Wolfram](https://github.com/WolframResearch/WolframLanguageForJupyter)).

3 changes: 2 additions & 1 deletion src/client/datascience/kernel-launcher/kernelProcess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ export class KernelProcess implements IKernelProcess {
try {
const tcpPortUsed = require('tcp-port-used') as typeof import('tcp-port-used');
await Promise.race([
tcpPortUsed.waitUntilUsed(this.connection.hb_port, 200, timeout),
// Wait on shell port as this is used for communications (hence shell port is guaranteed to be used, where as heart beat isn't).
tcpPortUsed.waitUntilUsed(this.connection.shell_port, 200, timeout),
deferred.promise,
createPromiseFromCancellation({
token: cancelToken,
Expand Down

0 comments on commit a30bf10

Please sign in to comment.