3

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 see 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?

Stig
  • 1,974
  • 2
  • 23
  • 50

1 Answers1

1

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

El Manolo
  • 11
  • 1
  • yes it could be missed. It is a .net console program which sometimes is forced killed by a scheduler/os. – Stig Feb 25 '11 at 09:21