Gate network parsers on a working proxy and remember what worked
The pool now warms up from what the previous run learned instead of starting cold every launch. Startup probes the remembered proxies first, stops as soon as ProxyMinimumLive of them answer, and writes the survivors to proxies.state.json after the warm-up and again on shutdown. Only proxies that ever answered are stored: the feed republishes a few thousand dead addresses every five minutes, and "was dead an hour ago" says almost nothing. Remembered state is a hint, not a verdict. A restored proxy sorts first in the warm-up queue but is not counted live until it answers in this session - otherwise a launch a week later would report live proxies it had never spoken to, the warm-up would skip the very entries it exists to re-check, and the parser gate would open on week-old evidence. That gate is the other half: a parser declaring RequiresNetwork will not run while the pool has nothing live. The Parse page disables the run button and shows a banner that leads to the Proxies page. Parsers that work on pasted text are never gated - they have nothing to route, and blocking them would make the app useless whenever the public lists are down. Two new settings cover the escape hatch and the target: "allow network parsers without a proxy" and how many live proxies to find at startup. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
85656e70b0
commit
44fb0d3a5f
@@ -487,4 +487,25 @@
|
||||
<data name="Parse.Error.EmptyKey" xml:space="preserve">
|
||||
<value>Пустой ключ.</value>
|
||||
</data>
|
||||
<data name="Proxies.Status.Ready" xml:space="preserve">
|
||||
<value>В пуле {0}, живых {1}.</value>
|
||||
</data>
|
||||
<data name="Parse.ProxyRequired" xml:space="preserve">
|
||||
<value>Этому парсеру нужна рабочая прокси, а живых нет. Проверьте список прокси или разрешите прямое подключение в настройках.</value>
|
||||
</data>
|
||||
<data name="Parse.GoToProxies" xml:space="preserve">
|
||||
<value>Открыть прокси</value>
|
||||
</data>
|
||||
<data name="Settings.AllowDirect" xml:space="preserve">
|
||||
<value>Разрешить сетевым парсерам работать без прокси</value>
|
||||
</data>
|
||||
<data name="Settings.AllowDirectHint" xml:space="preserve">
|
||||
<value>Когда выключено, парсер, который куда-то ходит, не запустится, пока не ответит хотя бы одна прокси. Парсеры, читающие вставленный текст, не блокируются никогда.</value>
|
||||
</data>
|
||||
<data name="Settings.MinimumLive" xml:space="preserve">
|
||||
<value>СКОЛЬКО ЖИВЫХ ИСКАТЬ ПРИ СТАРТЕ</value>
|
||||
</data>
|
||||
<data name="Settings.MinimumLiveHint" xml:space="preserve">
|
||||
<value>При старте сначала проверяются те, что работали в прошлый раз, и проверка прекращается, как только набралось столько. Больше значение — дольше первый запуск.</value>
|
||||
</data>
|
||||
</root>
|
||||
|
||||
Reference in New Issue
Block a user