09-16-2009 02:38 PM
09-16-2009 05:01 PM
This sounds like it is either an attempt to reuse a local port too soon or an issue with the remote end.
Are you specifying a specific local port for your connection? If you are don't. There is no reason to do that and it can cause issues with trying to reuse the connection too soon after closing it. Let the stack manage the local port for the connection. The TCP protocol does have a wait period (TIMEWAIT) before it can reuse a local port.If this is not the case then you will need to dig deeper.
Have you verified that the TCP-FIN packet is being sent to the remote end? You can do this using Wireshark to capture the packets and look for the TCP-FIN as well as the acknowledgements from the remote end. If the TCP-FIN is sent and not acknowledged either the packet is not reaching the remote end due to some routing problem or the remote end is not processing the message. If you are receiving the acknowledgements for the TCP-FIN packet then it is definitely a problem with your remote end. Is the remote side of the connection also written in LabVIEW? What are you trying to communicate with?
I have used the NI TCP VIs extensively and have not encountered the issue you are seeing. Try the above two suggestions and post back additional information if they didn't solve your problem.
09-17-2009 08:54 AM
I check again with Wire Shark and found I was not getting the FIN msg back from the remote site and corrected the code there. Problem solved! Thanks for assistance...