Skip to content

Commit

Permalink
Update neqo-transport/src/path.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Max Inden <mail@max-inden.de>
Signed-off-by: Lars Eggert <lars@eggert.org>
  • Loading branch information
larseggert and mxinden authored Sep 2, 2024
1 parent 1bc2739 commit 6343dc0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions neqo-transport/src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -768,17 +768,18 @@ 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],
"Possible ECN blackhole, disabling ECN and re-probing path"
);
self.ecn_info.disable_ecn(stats);
ProbeState::ProbeNeeded { probe_count: 0 }

} else {
qinfo!([self], "Probing failed");
ProbeState::Failed
}
} else {
qdebug!([self], "Initiating probe");
Expand Down

0 comments on commit 6343dc0

Please sign in to comment.