> The server closes 'handler' - the socket it has created to handle this particular TCP endpoint. But the main server socket, the one that listens for TCP connections, 'listener', remains open. The behavior observed > suggests that the server accepts a remote connection in the background before its code calls Accept(). Of course, you probably could GC-collect 'listener' but what for? Call Close() on it and the server will be definitely > gone.
I did call Close() on the listener and yet the Send was successful. That's not it. > And, as I said previously, even if the remote system has received your data, it does not mean that the server (the application) has read the data. Again, the second Send is called CHRONOLOGICALLY after the Close method was called on the Server end. The remote system SHOULD NOT receive the data sent by the client, thus forcing the Client to throw an exception. Cheers, Eddie =================================== This list is hosted by DevelopMentorŽ http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com
