开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜