AddressAlreadyInUseException. Port is not released
in C# using WCF I have more than once experienced that a port is not released when the program has ended. When I use tcpview I s开发者_Go百科ee the port is in state “listening” and process is “non-existent”.
How can this happen, when the process is not running any more?
I can't even close it via tcpview. How do i close the connection?
Just to make sure, do you manually call Close() your client everywhere ? Is there a possibility a Close could slip if the program ended in an unexpected way ?
By the way, I think you can close zombie connections with currport
精彩评论