We have several hundreds of windows hosts and on some of them after trying to stop/start "zabbix agent" port 10050 is not released and there are a lot of "time_wait" connections, so service coudn't be started until we reboot the machine. Via TcpView it is possible to close "time_wait" connections but not that which is in listening state and it shows <non-existent> process.
Steps to reproduce:
- sc stop "zabbix agent"
- sc start "zabbix agent"
Service is in stopped state. No zabbix agent process, but port 10050 is listening.
Service is successfully restarted