views:

192

answers:

1

Hi All,

I know the similar question may have been asked many times, but I want to represent the behavior I'm seeing and find if somebody can help predict the cause of this.

I am writing a windows service which connects to other windows service over TCP. There are 100 user entities of this, and 5 connections per each. These users perform their tasks using their individual connections.

The application goes on withough seeing this problem for 1 or 2 days. Or sometimes show the problem right after starting (-rarely). The best run I had was like 4 to 5 days without showing this exception. And after that application died or I had to stop it for various reasons.

I want to know what can be causing this? Here is the stacktrace.

System.IO.IOException: Unable to write data to the transport connection: An established connection was aborted by the software in your host machine. ---> System.Net.Sockets.SocketException: An established connection was aborted by the software in your host machine at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size) --- End of inner exception stack trace --- at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size) at System.Net.Security._SslStream.StartWriting(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security._SslStream.ProcessWrite(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslStream.Write(Byte[] buffer, Int32 offset, Int32 count)

A: 

Can't you the read error message? It should be so obvious!!

Muhogo
Muhogo, I mentioned in the question, the system ran quite nicely for 2 to 5 days!! And then these problems started happening. It was obvious that connection was aborted on client side. But, it wasn't obvious at that time, WHY?Ultimately, it turned out it was some multi-threading issue and synchronization within a semaphore. But, I couldn't find the system to run for that longer with such problems. Well, that issue is solved way back. I was just trying to see others who faced such exception, what was wrong in their systems. And I can try find those things in my program.Thanks
cdpnet