Thanks for the library, I'm using it for providing a log webpage for systems on the network.
I wanted to handle the case when the handshake fails (e.g. if someone opens the endpoint in a browser). Then I noticed that I could still use the TCP refnum after calling Close.
This is unexpected as the general LabVIEW convention is to always close/destroy refnums even if an error is encountered.
The cause is that the error in terminal of the Socket accessor VI is wired and returns a default value in the error case.
The VI should look something like this:

Thanks for the library, I'm using it for providing a log webpage for systems on the network.
I wanted to handle the case when the handshake fails (e.g. if someone opens the endpoint in a browser). Then I noticed that I could still use the TCP refnum after calling Close.
This is unexpected as the general LabVIEW convention is to always close/destroy refnums even if an error is encountered.
The cause is that the error in terminal of the Socket accessor VI is wired and returns a default value in the error case.
The VI should look something like this: