Skip to content

ReadToEndAsync no longer works on shellstream #1657

@spektor56

Description

@spektor56

When calling ReadToEndAsync a StreamReader for the ShellStream in the ShellStreamOnDataReceived event, the request hangs and never returns.

it is due to this block in the read method:

while (_readBuffer.ActiveLength == 0 && !_disposed)
{
_ = Monitor.Wait(_sync);
}

the method never returns 0 so ReadToEnd never completes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions