MDSplus / mdsplus

The MDSplus data management system
https://mdsplus.org/
Other
75 stars 45 forks source link

wfevent leaves UDP sockets after the it returns due to event or timeout #2830

Open cenkoloji opened 4 days ago

cenkoloji commented 4 days ago

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

 echo "for (_i=0;_i<1000;_i++) {wfevent('sockettest',,1);}" | tditest

On other terminal show summary of open sockets

watch -n 1 ss -s

or (Assuming there is no other tditest process running)

ls -l /proc/$(pgrep tditest)/fd

Expected behavior After wfevent returns, UDP socket is destroyed