Skip to content

SshCommand: OutputStream & ExtendedOutputStream should only return 0 when channel is closed #650

@drieseng

Description

@drieseng

Invoking Read(Byte[], Int32, Int32) on SshCommand*'s OutputStream or ExtendedOutputStream should blocking until either data is available, or the channel is closed (in which case zero should be returned).

We should strongly consider applying breaking changes to the SshCommand API as well:

  • Change signature of public string Execute() to public void Execute().
  • Have ExitCode throw when we have not received an ExitStatusRequestInfo.
  • Remove the Result property (users should use OutputStream instead).
  • Remove the Error property (users should use ExtendedOutputStream instead).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions