darkoperator / darkoperator/Posh-SSH

New-SSHSession -OperationTimeout and -ConnectionTimeout

Open
#323 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PowerShell
Stars
1.1k
Forks
222
PR merge metrics
No merged PRs in 30d

Description

Hi,

For the New-SSHSession function. It isn't documented if OperationTimeout or ConnectionTimeout are in seconds or milliseconds.
Without the function it errors saying the host didn't respond in 10000 milliseconds. However, I just wanted to ask to confirm that it's milliseconds?
@darkoperator

EDIT: It looks like the function isn't respecting what I pass to it? For example, I set the int value to 20000 for both and it still fails after around 15 seconds 😆 So it could be milliseconds?

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 at the New-SSHSession entry point and reproduce the reported behavior with OperationTimeout and ConnectionTimeout set to 10000 and 20000. Compare the configured values with the observed failure timing and error stating that the host did not respond in 10000 milliseconds; done means the timeout units and whether the parameters are respected are established.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.