I have created a simple tcp based "echo protocol" and notice that I suffer from handle leak on the server when the client forcibly closes the connection (sends a reset).
I catch the ConnectionReset and dispose the socket in the same way I do when the socket is closed (socket.Shutdown and socket.close). As anybody encountered such a problem? The ConnectionReset exception is thrown while I'm doing a socket.Read, if it matters.
Thanks.
Edit: Microsoft's DebugDiag tool suggests those are event handlers created by MSCORLIB. Needless to say that I don't create those directly (but they are created somewhere by the .net library)