I have not been able to reproduce the problem that you are describing
but a couple of notes about your design
1 the while loop in your server program is unnecessary the way this example is written.
your listener will wait indefinetly until it gets a connection but your client only runs once then closes the connection therefore the server while loop will only run once then exit on error
2 Try not to use sequence structures and local variables unless they are necessary
the 0 sequence is not necessary along with the local variable
to acomplish the same result as a sequence use subvi's with error clusters to control the flow
3 sometimes localhost acts differently than two separate computers regarding timeouts and connections (in my experience anyway)
4 unless you have special circumstances regarding closing the connection I suggest leaving it open until the main vi closes.
5 if you want to only make the connection once and have the server vi stay listening try putting the entire server program in a while loop adding shift registers to the error tunnels and converting connection errors to warnings
- James
Using LV 2012 on Windows 7 64 bit