mirror of
https://github.com/mailscope/kumomta.git
synced 2026-10-26 16:26:14 +00:00
ready_queue: increment attempts after exhausting connection candidates
Previously we'd just use the default error case and retry 1 minute later, but for sites with broken tls where we can never make a connection without changing our configuration to skip tls, we don't want to keep retrying every minute and instead want to follow the normal queue exponential backoff.
This commit is contained in:
@@ -492,7 +492,7 @@ impl Dispatcher {
|
||||
.have_more_connection_candidates(&mut dispatcher)
|
||||
.await
|
||||
{
|
||||
if let Some(msg) = dispatcher.msg.as_ref() {
|
||||
if let Some(msg) = dispatcher.msg.take() {
|
||||
log_disposition(LogDisposition {
|
||||
kind: RecordType::TransientFailure,
|
||||
msg: msg.clone(),
|
||||
@@ -515,6 +515,7 @@ impl Dispatcher {
|
||||
delivery_protocol: Some(&dispatcher.delivery_protocol),
|
||||
})
|
||||
.await;
|
||||
Dispatcher::requeue_message(msg, true, None).await?;
|
||||
}
|
||||
|
||||
if consecutive_connection_failures.fetch_add(1, Ordering::SeqCst)
|
||||
|
||||
Reference in New Issue
Block a user