Add UDP TX error logging for IPv6 debugging
All checks were successful
CI / test (push) Successful in 1m27s

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Siavash Sameni
2026-03-31 18:41:57 +04:00
parent 176cdae239
commit ba0a8f1b7c

View File

@@ -733,8 +733,11 @@ async fn udp_tx_loop(
state.tx_bytes.fetch_add(n as u64, Ordering::Relaxed); state.tx_bytes.fetch_add(n as u64, Ordering::Relaxed);
consecutive_errors = 0; consecutive_errors = 0;
} }
Err(_) => { Err(e) => {
consecutive_errors += 1; consecutive_errors += 1;
if consecutive_errors == 1 {
tracing::warn!("UDP TX send error: {} (target={})", e, target);
}
if consecutive_errors > 1000 { if consecutive_errors > 1000 {
tracing::warn!("UDP TX: too many consecutive send errors, stopping"); tracing::warn!("UDP TX: too many consecutive send errors, stopping");
break; break;