Open guygg2048 opened 3 days ago
I think this might be a problem with cancel safety, ZeroMQ and those socket types. The Req
and Rep
sockets are in lock step. If you send a message, then the only thing you can do is receive a message, if you cancel receiving a message, I'm not sure what should happen to the state of that socket.
Does the same thing happen if you use another socket type?
Hi, I'm trying to use a REQ socket to send a message, and then have a timeout on the response in order to handle cases where a response is not sent in time. When I try it the program hangs after the time passes.
Here is a sample code:
I also tried to implement the same logic using
tokio::select!
and the result was similar.