Skip to content

WebSocket.lvclass:Close.vi does not close TCP refnum when an error is wired #16

@cordbm

Description

@cordbm

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:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions