Compare commits

...

1 Commits

Author SHA1 Message Date
Arseny Sher
9fd9a15305 Terminate subscription if channel is full.
Might help as a hotfix, but need to understand root better.
2022-12-15 12:53:59 +04:00

View File

@@ -369,7 +369,9 @@ impl BrokerService for Broker {
Err(RecvError::Lagged(skipped_msg)) => {
missed_msgs += skipped_msg;
if let Poll::Ready(_) = futures::poll!(Box::pin(warn_interval.tick())) {
warn!("dropped {} messages, channel is full", missed_msgs);
warn!("subscription id={}, key={:?}, addr={:?} dropped {} messages, channel is full",
subscriber.id, subscriber.key, subscriber.remote_addr, missed_msgs);
Err(Status::new(Code::Internal, "full channel"))?;
missed_msgs = 0;
}
}