-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
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:
let send_sock = tmq::request(&tme::Context::new()).connect("ipc://test.ipc")?;
let message: tmq::Message = "Hello".into();
let rec_sock = send_sock.send(message.into()).await?;
let (multipart, send_sock) = tokio::time::timeout(Duration::from_secs(1), recv_sock.recv()).await??;
...
I also tried to implement the same logic using tokio::select! and the result was similar.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels