Skip to content

Fix traceroute timeout for case of 0-hops#871

Merged
ianmcorvidae merged 2 commits intomeshtastic:masterfrom
viric:traceroute-0hop
Mar 2, 2026
Merged

Fix traceroute timeout for case of 0-hops#871
ianmcorvidae merged 2 commits intomeshtastic:masterfrom
viric:traceroute-0hop

Conversation

@viric
Copy link
Contributor

@viric viric commented Nov 29, 2025

It was not waiting any time.

It was not waiting any time.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts traceroute timeout calculation so traceroute requests don’t immediately time out in low-hop scenarios (notably when the configured hop limit is 0).

Changes:

  • Updates the traceroute wait factor calculation to use hopLimit + 1 when capping the timeout multiplier.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@ianmcorvidae ianmcorvidae merged commit 1d3bdf1 into meshtastic:master Mar 2, 2026
9 checks passed
@codecov
Copy link

codecov bot commented Mar 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 60.59%. Comparing base (5cc0dae) to head (7129a9f).
⚠️ Report is 29 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #871      +/-   ##
==========================================
+ Coverage   59.88%   60.59%   +0.70%     
==========================================
  Files          24       24              
  Lines        4318     4337      +19     
==========================================
+ Hits         2586     2628      +42     
+ Misses       1732     1709      -23     
Flag Coverage Δ
unittests 60.59% <ø> (+0.70%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants