开发者

AddressAlreadyInUseException. Port is not released

开发者 https://www.devze.com 2023-02-13 09:18 出处:网络
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-

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

精彩评论

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

关注公众号