From 6343dc0d90a67728883e61f8766410a9a831287d Mon Sep 17 00:00:00 2001 From: Lars Eggert Date: Mon, 2 Sep 2024 09:04:42 +0300 Subject: [PATCH] Update neqo-transport/src/path.rs Co-authored-by: Max Inden Signed-off-by: Lars Eggert --- neqo-transport/src/path.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/neqo-transport/src/path.rs b/neqo-transport/src/path.rs index 8c3c673954..6580f2ab47 100644 --- a/neqo-transport/src/path.rs +++ b/neqo-transport/src/path.rs @@ -768,10 +768,7 @@ impl Path { _ => 0, }; self.state = if probe_count >= MAX_PATH_PROBES { - if self.ecn_info.ecn_mark() == IpTosEcn::NotEct { - qinfo!([self], "Probing failed"); - ProbeState::Failed - } else { + if self.ecn_info.ecn_mark() == IpTosEcn::Ect0 { // The path validation failure may be due to ECN blackholing, try again without ECN. qinfo!( [self], @@ -779,6 +776,10 @@ impl Path { ); self.ecn_info.disable_ecn(stats); ProbeState::ProbeNeeded { probe_count: 0 } + + } else { + qinfo!([self], "Probing failed"); + ProbeState::Failed } } else { qdebug!([self], "Initiating probe");