Skip to content

Stop the -%N0 type probe at once on an abort lock - #2235

Merged
xroche merged 2 commits into
masterfrom
abort-lock-type-probe
Nov 14, 2026
Merged

xroche merged 2 commits into
masterfrom
abort-lock-type-probe

Conversation

@xroche

@xroche xroche commented Nov 14, 2026

Copy link
Copy Markdown
Owner

An abort lock written during the -%N0 link-type probe now stops the crawl at once. Before, the crawl first probed every remaining link, which took 14s in test 436. This is the lock-file half of #2234, which fixed the same wait for SIGTERM. I also tried a poll in the slot wait (hts_wait_available_socket) and dropped it, because no crawl I could build needed it.

xroche and others added 2 commits November 14, 2026 16:28
The engine read hts-abort.lock only in its main loop. The -%N0 type
probe waits on each link's reply in its own loop. So a lock written
there took effect only after every remaining link was probed, which
took 14s on test 436's slow server. #2234 fixed the same wait for
SIGTERM.

hts_poll_abort_request() now does the read, log and exit_xh store that
both main-loop sites repeated, and the probe loop calls it too. Test 436
probes /slowhead/ and fails without the new call.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Xavier Roche <roche@httrack.com>
…n p0

write_lock_request can retry for about 3s on drvfs, which the 4s bound
must not count.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Xavier Roche <roche@httrack.com>
@xroche
xroche enabled auto-merge (squash) November 14, 2026 15:55
@xroche
xroche merged commit 5392772 into master Nov 14, 2026
41 checks passed
@xroche
xroche deleted the abort-lock-type-probe branch November 14, 2026 16:28
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