Skip to content

Remove unneeded SSH remoting std handle workaround - #15308

Merged
Dongbo Wang (daxian-dbw) merged 1 commit into
PowerShell:masterfrom
PaulHigin:fix-ssh-streams
Apr 30, 2021
Merged

Remove unneeded SSH remoting std handle workaround#15308
Dongbo Wang (daxian-dbw) merged 1 commit into
PowerShell:masterfrom
PaulHigin:fix-ssh-streams

Conversation

@PaulHigin

Copy link
Copy Markdown
Contributor

PR Summary

This PR removes an unneeded SSH remoting .NET std stream workaround. Issue #15229.

PR Context

In the early days .NET stream reader/writer did not correctly handle std streams on Windows plaforms only, and we had a PInvoke workaround. This workaround is no longer needed and can be removed. This change also disables the ability for Console APIs to write to stdout, which is reserved for PSRP messages only.

PR Checklist

@iSazonov Ilya (iSazonov) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sense to add a test?

@PaulHigin

Copy link
Copy Markdown
Contributor Author

No new tests are needed for this.

@daxian-dbw
Dongbo Wang (daxian-dbw) merged commit a95b2cb into PowerShell:master Apr 30, 2021
Keith Hill (rkeithhill) pushed a commit to rkeithhill/PowerShell that referenced this pull request May 3, 2021
@daxian-dbw Dongbo Wang (daxian-dbw) added the CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log label May 26, 2021
@ghost

Copy link
Copy Markdown

🎉v7.2.0-preview.6 has been released which incorporates this pull request.:tada:

Handy links:

Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj/PowerShell that referenced this pull request Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants