davidfowl / BedrockFramework

High performance, low level networking APIs for building custom servers and clients.
MIT License
1.04k stars 152 forks source link

BR Client: PipeCompletion.ThrowLatchedExceptiom #79

Open Ninds opened 4 years ago

Ninds commented 4 years ago

When using bedrock for client side connections the connection is aborted with ThrowLatchedException. Reproducer below has a unit test run with both Pipelines.Sockets.Unofficial & Bedrock. Boolean determines which.

https://gist.github.com/Ninds/9e4dfe6c8ba974ec128fbbce089f3ff1

Ninds commented 4 years ago

Message:

Microsoft.AspNetCore.Connections.ConnectionAbortedException : The connection was aborted

Stack Trace:

PipeCompletion.ThrowLatchedException()

Pipe.GetReadResult(ReadResult& result)

Pipe.GetReadAsyncResult()

DefaultPipeReader.GetResult(Int16 token)

Class1.TestWriteAndFlush(Boolean useBedrock) line 46

Class1.TestWriteAndFlush(Boolean useBedrock) line 59

--- End of stack trace from previous location where exception was thrown ---
davidfowl commented 4 years ago

Dupe of #19