Skip to content

Cancel networkStream.ReadAscync() on socket shutdown #68

@danbarua

Description

@danbarua

Issue from LinkedIn:

Dan,
Is there any way I could cancel ReadAsync on NetworkStream object.
We get some threads blocked and can't close TcpClient underlying tcp connection. The reason i am asking as ReadAsync is overloaded method.
ReadAsync(Byte[], Int32, Int32, CancellationToken)
Any help will be greatly appreciated.
Best regards,
Rus

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions