I have a zmq proxy(XPUB/XSUB) running on a thread and some other publisher/subscribers connected to this proxy on python, and have a publisher code on C++. All connections are made using tcp on 127.0.0.1.
When I first start the system, it works as expected. Then I terminate the C++ side while keeping the python side on. When I restart the C++ side I do not get any messages on python side, while the pub/sub that lives on python works just fine.
Now I read some other threads and if I understand it correctly it is because subscribers to my C++ side still think the connection is on. So I restart the python code completely as well, with proxy included. However I still cannot get C++ side and python side communicate with each other, no matter how I restart each side.
To make things work again I have to restart my computer. When it restarts it works until I close C++ side again.
I would love to get a feedback on what I might be doing wrong.