Skip to content

test: switch overlapping SOCKS5 listeners on a port outside the ephemeral range - #60

Merged
acking-you merged 1 commit into
devfrom
test/socks5-overlap-port
Oct 28, 2026
Merged

acking-you merged 1 commit into
devfrom
test/socks5-overlap-port

Conversation

@acking-you

Copy link
Copy Markdown
Owner

Fixes a flaky test seen on ubuntu-latest in #59 (Address already in use (os error 98) at managed_socks5.rs:141).

overlapping_listen_addresses_on_one_port_can_be_switched took its port from 127.0.0.1:0 and then released and re-bound it while moving between 127.0.0.1 and 0.0.0.0. A parallel test binding :0 can be handed that just-released ephemeral port in between. It now uses restartable_address() (a port below every ephemeral range), as 3a4a7bb did for the two restart tests; all three tests that re-bind a port now use it.

Verified: make fmt, make clippy, cargo clippy -p proxy-server --tests -D warnings, and cargo test -p proxy-server --test managed_socks5 three times (16/16 each).

🤖 Generated with Claude Code

…eral range

overlapping_listen_addresses_on_one_port_can_be_switched took its port from
127.0.0.1:0 and then released and re-bound it while moving between
127.0.0.1 and 0.0.0.0. A parallel test binding :0 could be handed that
just-released ephemeral port in between, failing the switch with EADDRINUSE
(seen on ubuntu-latest in #59). Use restartable_address(), as 3a4a7bb did for
the two restart tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-28T08:04:46.606076Z 84e933f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@acking-you
acking-you merged commit a70f417 into dev Oct 28, 2026
3 checks passed
@acking-you
acking-you deleted the test/socks5-overlap-port branch October 28, 2026 08:26
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