After wfevent/wfeventRaw returns (due to an event or timeout), the UDP socket remains, causing number of sockets/open file descriptors to increase.
This is not an issue for short lived programs, but for long acquisition programs that stay alive for long periods listening events, it can cause hitting limits of number of open files.
For instance in one host I was hit with error
Cannot bind socket
: Address already in use
invalid eventid -1
Affiliation EPFL/Swiss Plasma Center
Version(s) Affected/Platform(s) RHEL9 - mdsplus-alpha 7.148.2 RHEL7 - mdsplus-stable 7.142.81
Installation Method(s) yum/dnf
Describe the bug
To Reproduce One one terminal
On other terminal show summary of open sockets
or (Assuming there is no other tditest process running)
Expected behavior After wfevent returns, UDP socket is destroyed