Skip to content

Revert the mainland zone trial (#102, #103) - #104

Merged
Digidai merged 2 commits into
mainfrom
revert-mainland-zone
Nov 21, 2026
Merged

Digidai merged 2 commits into
mainfrom
revert-mainland-zone

Conversation

@Digidai

@Digidai Digidai commented Nov 21, 2026

Copy link
Copy Markdown
Owner

Reverts #102 and #103. The tree is identical to #101 (git diff e197ea3 HEAD is empty).

Why

#102 and #103 were a trial: retry a mainland China host through the general proxy with a mainland zone in the username. The trial failed in production.

After #103 deployed, four mainland URLs were requested. All four returned 504, and provider_attempts_daily shows proxy_pool_mainland at 4 attempts, 4 failures. The Worker logs show every attempt ending one of two ways:

  • Proxy CONNECT tunnel rejected with status 407: HTTP/1.1 407 Proxy Authentication Required
  • Proxy response timed out after 9000ms

So the username with the appended zone is not accepted. Either the format is wrong or the account has no mainland exit; neither can be established from here.

Effect

  • A mainland host that times out returns 504 after about 10 s again, instead of about 20 s.
  • Anonymous requests to those hosts stop spending the daily proxy budget on a retry that cannot succeed.
  • Retry a timed-out mainland China host only through a mainland-exit proxy #101 stays: with PROXY_POOL_MAINLAND unset, a mainland host that times out gets the "only answer visitors inside mainland China" 504 at once, and the mainland pool is used as soon as one is configured.

Checks

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T12:50:15.112946Z 8346226 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.

@cloudflare-workers-and-pages

Copy link
Copy Markdown
Contributor

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
website2markdown 8346226 Nov 21 2026, 12:49 PM

@Digidai
Digidai merged commit 4ee4d46 into main Nov 21, 2026
2 checks passed
@Digidai
Digidai deleted the revert-mainland-zone branch November 21, 2026 12:52
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