Hi,
I've created a little asynchronous TCP socket program for
communication between server and client. The sender
socket at client side occasionally gives an exception of
"A system call that should never fail has failed".
When this is not happened, my program can communication
tens of Megabytes of data with no error. But it just
happened occasionally. When this happened, I have to stop
the client program for sometime before restart it. Or if
I restart the client immediately, it keeps giving this
exception.
I use the class System.Net.Sockets.Socket and the method
my client program used to send is BeginSend().
I could not figure out what is the problem because the
exception message does not give me any hint.
So I wish someone out there will know what is the problem
with the socket method and tell me how to work around.
TIA