Commit dec8250
committed
(MODULES-8748) Improve pipe reading in the PowerShell Pipe Server
Previously the powershell manager was modified to read in data from the pipe
in a single call. However in buffered environments, the pipe will read data
in chunks. This is supported by the Read method [1]
> This might be less than the number of bytes requested if that number of bytes
> is not currently available
In this commit, the reader will attempt to read all bytes in a single call and
then continue to read the remaining bytes from the pipe until all of the
expected bytes are read.
[1] https://docs.microsoft.com/en-us/dotnet/api/system.io.pipes.pipestream.read?view=netcore-2.01 parent c9a869d commit dec8250
1 file changed
+16
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
723 | 723 | | |
724 | 724 | | |
725 | 725 | | |
726 | | - | |
727 | | - | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
728 | 741 | | |
729 | | - | |
| 742 | + | |
730 | 743 | | |
731 | 744 | | |
732 | 745 | | |
| |||
0 commit comments