An existing connection was forcibly closed by the remote host

Posted by peter on Stack Overflow See other posts from Stack Overflow or by peter
Published on 2010-04-06T00:54:22Z Indexed on 2010/04/06 1:13 UTC
Read the original article Hit count: 292

Filed under:
|
|
|

I am working with a commercial application which is throwing a SocketException with the message,

An existing connection was forcibly closed by the remote host

This happens with a socket connection between client and server. The connection is alive and well, and heaps of data is being transferred, but it then becomes disconnected out of nowhere.

Has anybody seen this before? What could the causes be? I can kind of guess a few causes, but also is there any way to add more into this code to work out what the cause could be?

Any comments / ideas are welcome. Thanks.

© Stack Overflow or respective owner

Related posts about sockets

Related posts about .NET