broker: increase mqtt timeout from 4s to 10s

This commit is contained in:
irriden
2023-10-31 23:46:37 +00:00
parent 616acc868e
commit 4b85a85f0e

View File

@@ -188,7 +188,7 @@ fn pub_timeout(
log::error!("failed to pub to link_tx! {:?}", e);
}
// and receive from the correct client (or timeout to next)
let dur = Duration::from_secs(4);
let dur = Duration::from_secs(10);
if let Ok((cid, topic_end, reply)) = msg_rx.recv_timeout(dur) {
if &cid == client_id {
return Some(ChannelReply::new(topic_end, reply));