Add UDP TX error logging for IPv6 debugging
All checks were successful
CI / test (push) Successful in 1m27s
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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user