Skip to content

scripts: capture socket state on a fwd-bulk stall - #1288

Open
ejohnstown wants to merge 1 commit into
wolfSSL:masterfrom
ejohnstown:fwd-bulk-stall-capture
Open

ejohnstown wants to merge 1 commit into
wolfSSL:masterfrom
ejohnstown:fwd-bulk-stall-capture

Conversation

@ejohnstown

Copy link
Copy Markdown
Contributor

When Phase 3 of fwd-bulk.test stalls, keep sampling for up to 60 seconds before failing, so the next CI hit shows whether the stall clears on its own (loopback retransmit backoff in the kernel) or the forward is hung.

  • Every 10 seconds, prints the echoed byte count and ss -tnoi for the entry, target and SSH ports, after a one-time uname -r.
  • Lists each process's state and wchan, and ends the failure with "(it resumed)" or "(it hung)".

When Phase 3 stops making progress, keep sampling the echoed byte
count and the forward's sockets for up to 60 seconds before failing,
so a CI failure shows whether the stall clears on its own (the kernel
backing off a loopback retransmit) or the forward is hung.

- print uname -r, then ss -tnoi for the entry, target and SSH ports
  every 10 seconds
- list each process's state and wchan from /proc
- end the failure message with "(it resumed)" or "(it hung)"
Copilot AI balanced review requested due to automatic review settings September 30, 2026 17:34

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The diagnostic changes are focused, portable, and preserve the test’s existing failure behavior.

Review effort: Balanced
Findings: None

What changed in this PR

Adds extended diagnostics when Phase 3 forwarding stalls, helping distinguish temporary kernel retransmit backoff from a persistent hang.

Changes:

  • Samples byte progress and relevant socket state for up to 60 seconds.
  • Reports process state/wchan and whether forwarding resumed or remained hung.
File Description
scripts/​fwd-bulk.test Adds stall sampling and enhanced failure diagnostics.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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.

2 participants