LabVIEW DataSocket Connection Not Closing While Waiting to Read

Updated Dec 1, 2023

Reported In

Software

  • LabVIEW

Issue Details

I am using LabVIEW DataSockets and attempting to close the connection before I finish reading a message, for instance when I am using a large or infinite timeout. I'm unable to do so. Why?

Solution

A DataSocket Read function will lock the resource until reading a value or timing out, and does not allow for closing the DataSocket until completing. 
It is recommended to use a shorter timeout and to utilise the "timed out" boolean to repeat the read request instead of an infinite timeout.