Replies: 1 comment 2 replies
-
Another slightly different exception that seems to sometimes follow the
I've tried catching the exception from WatsonTcpServer.Send but to no avail. The errors are unfortunately causing the app to become unresponsive to a lot of actions and connections, requiring a swift restart when it occurs. |
Beta Was this translation helpful? Give feedback.
-
Hey,
I've recently been getting a few exceptions that I can't quite figure out how to prevent or handle.
The first one is this:
Unable to write data to the transport connection: Connection reset by peer.: at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size) at WatsonTcp.WatsonTcpServer.SendHeaders(ClientMetadata client, WatsonMessage msg) at WatsonTcp.WatsonTcpServer.SendInternal(ClientMetadata client, WatsonMessage msg, Int64 contentLength, Stream stream)
And the second one that follows shortly after is:
Unable to write data to the transport connection: Broken pipe.: at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size) at WatsonTcp.WatsonTcpServer.SendHeaders(ClientMetadata client, WatsonMessage msg) at WatsonTcp.WatsonTcpServer.SendInternal(ClientMetadata client, WatsonMessage msg, Int64 contentLength, Stream stream)
It's happened twice now after a specific event in the app, where the server sends a bunch of data to dozens of clients (which is way more than what is normal for the application). Not sure if it directly relates to that though.
Any insight on what the exception really means, what might be causing it and how to prevent it?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions