steelbrain / steelbrain/node-ssh

Timeout handshake

Open
#442 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1k
Forks
94
PR merge metrics
No merged PRs in 30d

Description

Hey,
How to catch error inside client?
const err = new Error('Timed out while waiting for handshake');

Error: Timed out while waiting for handshake at Timeout._onTimeout (server/node_modules/ssh2/lib/client.js:1014:23) at listOnTimeout (node:internal/timers:564:17) at process.processTimers (node:internal/timers:507:7) { level: 'client-timeout' }

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the timeout stack trace at server/node_modules/ssh2/lib/client.js:1014 and reproduce the handshake timeout in the client. The issue does not identify a project source file, test, or expected error-handling behavior, so confirm the intended way to catch the client-timeout error before defining done.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.