Jeffh4
2006-06-19 23:40:08 UTC
I've enclosed modfied versions of the Data Server Client and Server (TCP Listen.vi) and Multiple Connections Client and Server (TCP Create/Wait on Listener.vi's)
Both Servers have a Wait Delay Loop after the TCP Close Connection (Data Server vi's) or TCP Close Listener (Multiple Connections vi's)
If you run through the instructions, you'll see how the port opened with TCP Listen.vi continues to accept TCP Open Connection.vi calls after closed, but the port opened with TCP Create Connection does not.
Looking at this post:
<a href="http://forums.ni.com/ni/board/message?board.id=170&message.id=38579&requireLogin=False" target="_blank">http://forums.ni.com/ni/board/message?board.id=170&message.id=38579&requireLogin=False</a>
I'm guessing that the TCP Listen.vi creates a "phantom listener" that persists after the TCP connection is closed.
This is undesirable behavior for my VI. Fortunately there is a work-around available by using the TCP Create/Wait on Listeners vi's instead and I'll just limit the number of connections to one.
Is this a bug in LabVIEW, a "feature", or am I missing something?
tcp_close.llb:
http://forums.ni.com/attachments/ni/170/190742/1/tcp_close.llb
Both Servers have a Wait Delay Loop after the TCP Close Connection (Data Server vi's) or TCP Close Listener (Multiple Connections vi's)
If you run through the instructions, you'll see how the port opened with TCP Listen.vi continues to accept TCP Open Connection.vi calls after closed, but the port opened with TCP Create Connection does not.
Looking at this post:
<a href="http://forums.ni.com/ni/board/message?board.id=170&message.id=38579&requireLogin=False" target="_blank">http://forums.ni.com/ni/board/message?board.id=170&message.id=38579&requireLogin=False</a>
I'm guessing that the TCP Listen.vi creates a "phantom listener" that persists after the TCP connection is closed.
This is undesirable behavior for my VI. Fortunately there is a work-around available by using the TCP Create/Wait on Listeners vi's instead and I'll just limit the number of connections to one.
Is this a bug in LabVIEW, a "feature", or am I missing something?
tcp_close.llb:
http://forums.ni.com/attachments/ni/170/190742/1/tcp_close.llb