Harden Turnstile solve path for --fast/Xvfb runs
Add cf_sleep, multi-round shadow clicks, richer diagnostics, and longer profile/CF budgets so tokenLen=0 fails less on headless servers.
This commit is contained in:
1 parent
767516745e
commit
62b6ea8ea2
7 files changed
+391
-129
No files matched your search
+5
-4
@@ -377,10 +377,11 @@ def register_one(
|
||||
sso_timeout = int(cfg.get("sso_timeout_base", 120) or 120)
|
||||
except Exception:
|
||||
sso_timeout = 120
|
||||
# Fast-fail band: keep CF stalls from dominating wall clock.
|
||||
# batch10 lesson: success profiles finish in ~6–18s; 40–50s CF fail is enough.
|
||||
profile_timeout = max(35, min(profile_timeout, 70))
|
||||
sso_timeout = max(30, min(sso_timeout, 90))
|
||||
# Profile page is dominated by Turnstile on Xvfb/servers.
|
||||
# Old 70s hard-cap + --fast human_sleep scale caused tokenLen=0 within ~18s.
|
||||
# Allow enough wall-clock for multi-round CF (cf_sleep is only lightly scaled).
|
||||
profile_timeout = max(60, min(profile_timeout, 150))
|
||||
sso_timeout = max(30, min(sso_timeout, 120))
|
||||
|
||||
log(worker_id, "4. 填写资料")
|
||||
profile = reg.fill_profile_and_submit(
|
||||
|
||||
Reference in new issue
Block a user