You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 28, 2020. It is now read-only.
Here is a minimal rust test code to reproduce the issue.
use{
failure::Error,
libzmq::{prelude::*,*},
std::{thread, time::Duration},};fnmain() -> Result<(),Error>{let addr:TcpAddr = "0.0.0.0:*".try_into()?;let server = ServerBuilder::new().bind(addr).build()?;let addr = server.last_endpoint()?.unwrap();let client = ClientBuilder::new().connect(addr).recv_hwm(1).heartbeat(Heartbeat::new(Duration::from_secs(1))).build()?;// Retreive the routing id of the client.
client.send("")?;letmut msg = server.recv_msg()?;let id = msg.routing_id().unwrap();
thread::spawn(move || loop{// Send an empty message to the client using the routing_id.
server.route("", id).unwrap();});// Simulate a slow client by receiving a message and waiting 10sec.loop{
client.recv(&mut msg)?;
thread::sleep(Duration::from_secs(10));}}
The text was updated successfully, but these errors were encountered:
See zeromq/libzmq#3596.
Here is a minimal rust test code to reproduce the issue.
The text was updated successfully, but these errors were encountered: