Skip to content

feat(benchmarks): report connection port resources - #75

Merged
nick2781 merged 2 commits into
mainfrom
feat/connection-port-resources
Nov 5, 2026
Merged

nick2781 merged 2 commits into
mainfrom
feat/connection-port-resources

Conversation

@nick2781

@nick2781 nick2781 commented Nov 5, 2026

Copy link
Copy Markdown
Member

Repeated connection-load runs can fail while allocating a local address before they reach their connection target. Record the ephemeral-port range at startup and capture the first connection error's code, category, established count and port-resource snapshot before cleanup. This keeps setup pressure distinguishable from a stall after all connections are established.

Both native benchmarks share the implementation. macOS queries the default port range; Linux also reads the network namespace's all-process TCP TIME_WAIT count. Unsupported queries and OS errors remain explicit. The tool does not estimate free connection capacity or change system settings or limits.

Validation on macOS arm64 / Boost 1.92 / Release / TLS off, synchronized with accepted #74: nine resource cases and six observer cases passed, together with native argument/self checks, help, a controlled one-connection timeout/cleanup regression, and complete clang-format 18 checks. The standalone module also passed Nimbus and bilingual benchmark-manual checks. Linux/Windows execution remains for hosted acceptance.

This improves diagnostics for the invalid setup trials recorded in #61; it does not repair or close the established-connection TCP stall. Raw measurements and logs remain local.

@nick2781
nick2781 added this pull request to the merge queue Nov 5, 2026
Merged via the queue into main with commit 96973b2 Nov 5, 2026
10 checks passed
@nick2781
nick2781 deleted the feat/connection-port-resources branch November 5, 2026 11:05
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.

1 participant