Skip to content

Codex/GitHub allowlist and dial fallback#3

Merged
alphabetc1 merged 2 commits into
mainfrom
codex/github-allowlist-and-dial-fallback
Apr 7, 2026
Merged

Codex/GitHub allowlist and dial fallback#3
alphabetc1 merged 2 commits into
mainfrom
codex/github-allowlist-and-dial-fallback

Conversation

@alphabetc1
Copy link
Copy Markdown
Owner

No description provided.

@alphabetc1 alphabetc1 merged commit e9149f2 into main Apr 7, 2026
1 check passed
@alphabetc1 alphabetc1 deleted the codex/github-allowlist-and-dial-fallback branch April 7, 2026 06:41
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b694f149ff

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread internal/proxy/server.go
Comment on lines +447 to +449
select {
case results <- dialResult{address: address, conn: conn}:
case <-attemptCtx.Done():
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Close redundant successful fallback connections

When multiple dialResolvedTargets attempts succeed around the same time, each successful goroutine can enqueue its net.Conn into results, but the caller returns after the first success and never drains/cleans the remaining queued connections. In dual-stack or multi-A record cases this leaks upstream sockets per request until GC/fd pressure becomes significant, because the extra successful conns are not closed anywhere after being sent.

Useful? React with 👍 / 👎.

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