Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.IO.IOException when connection is closed from client #35

Open
heremit opened this issue May 17, 2021 · 0 comments
Open

System.IO.IOException when connection is closed from client #35

heremit opened this issue May 17, 2021 · 0 comments

Comments

@heremit
Copy link

heremit commented May 17, 2021

If client does not wait and closes connection appears an exception:

2021-05-17 08:34:36 [WARN]  (uhttpsharp.HttpClientHandler) Error while serving : 127.0.0.1:63782
System.IO.IOException
Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   at System.IO.BufferedStream.Read(Byte[] array, Int32 offset, Int32 count)
   at uhttpsharp.LimitedStream.Read(Byte[] buffer, Int32 offset, Int32 count) in c:\Users\shani\Documents\GitHub\uHttpSharp\uhttpsharp\LimitedStream.cs:line 129
   at uhttpsharp.NotFlushingStream.Read(Byte[] buffer, Int32 offset, Int32 count) in c:\Users\shani\Documents\GitHub\uHttpSharp\uhttpsharp\HttpClient.cs:line 211
   at System.IO.Stream.<>c.<BeginReadInternal>b__39_0(Object <p0>)
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant