LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

stuck in fin_wait_2 state

I have a CVI app that is a TCP server. Another machine running some other TCP activex control is connected to me. When I get a TCP_DISCONNECT I do a DisconnectTCPClient. If I look at that port with netstat I see that it is stuck in fin_wait_2. What do I do or what is wrong?
0 Kudos
Message 1 of 3
(2,973 Views)
You don't have to do anything on the server side to disconnect the client. You are just getting a notification that the client is disconnecting so you can update your server program that the client is gone. The function DisconnectTCPClient is designed for use in the CLIENT application to disconnect from the server.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 3
(2,973 Views)
Are you saying that it is a bug that DisconnectTCPClient() is in the Server Functions tree of the TCP functions?
0 Kudos
Message 3 of 3
(2,973 Views)