Fleck
Fleck copied to clipboard
port still open after disposing the server
I notice my socket server still has a port open after it is disposed and turned to null.
//Close websocket clients foreach (var client in allSockets) client.Close(); server.Dispose(); server = null;
Is this normal?
That isn't normal. Can you give more details on platform, if you're using SSL, does this happen if you dispose the server before any clients have connected?
Windows 7 SP1 X64 is the platform. It does this if a client has never connected. I have a winforms app that disables and enables the socket server with buttons, but oddly enough the port is still open when the server is disposed. I have messageboxes in place to check. ;) Edit: No SSL