In languages โโlike C / C ++, closing the zeromq core explicitly requires what I understand. But in some higher-level languages, such as php and python, which have a garbage collection mechanism, should I explicitly close sockets?
There is no ZMQSocket :: close () in php, and in python, the pyzmq doc says socket.close () can be omitted since it will be automatically closed during garbage collection.
So my question is: do I need to manually close it or not? ...
source
share