SiLab-Bonn / irrad_control

Control and data aquisition / visualization software for the irradiation site at HISKP cyclotron
https://www.zyklotron.hiskp.uni-bonn.de/zyklo/experiments_cyclotron_EN.html#one
MIT License
0 stars 1 forks source link

Let ZMQ close/terminate sockets/contexts on it's own #39

Closed leloup314 closed 3 years ago

leloup314 commented 4 years ago

Manually terminating a ZMQ context can lead to stuck code due to sockets having a non-empty in/output queue when the context termination i called (see here). ZMQ calls all needed close/term methods for messages, sockets and the context correctly on its own, when the programm exits. Therefore, to reduce the probability of stuck code, the manual closing should stop

leloup314 commented 3 years ago

Merged in #48