mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Added requested comment (#3640)
This commit is contained in:
committed by
Dongbo Wang
parent
6db5c945b2
commit
b5f10ecba2
@@ -1556,7 +1556,10 @@ namespace System.Management.Automation.Remoting.Client
|
||||
return string.Empty;
|
||||
}
|
||||
|
||||
// SSH may return a multi-line error message
|
||||
// SSH may return a multi-line error message.
|
||||
// The StdError pipe stream is open ended causing StreamReader read operations to block
|
||||
// if there is no incoming data. Since we don't know how many error message lines there
|
||||
// will be we use an asynchronous read with timeout to prevent blocking indefinitely.
|
||||
System.Text.StringBuilder sb = new Text.StringBuilder(error);
|
||||
var running = true;
|
||||
while (running)
|
||||
|
||||
Reference in New Issue
Block a user