apple / apple/swift-nio-ssh

NIOSSHClient gets stucked

Open
#86 14 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
515
Forks
85
PR merge metrics
No merged PRs in 30d

Description

# Problem
When testing [NIOSSHClient](https://github.com/apple/swift-nio-ssh/blob/main/Sources/NIOSSHClient/main.swift), I am always getting stucked indefinitely on childChannel wait() method. Could somebody help me understand what is the problem?

# Findings
- promise.FutureResult was created successfully, but my guess is, it was never met.
- ExampleExecHandler was never activated and command was never executed.

# Setup
- Testing on M1 Macbook Pro with latest MacOS & XCode

Contributor guide

Open the contributing guide

Research direction

Start with Sources/NIOSSHClient/main.swift and reproduce the indefinite wait at childChannel wait(). Trace the promise.FutureResult and ExampleExecHandler activation, then confirm that the command executes and the child channel completes instead of remaining stuck.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.