adblock-fast: update to 1.2.4-2
authorStan Grishin <redacted>
Mon, 15 Jun 2026 01:42:31 +0000 (01:42 +0000)
committerStan Grishin <redacted>
Mon, 15 Jun 2026 18:35:42 +0000 (11:35 -0700)
commitad7bc019e28d6b7d33e22ac4b5c5515d54ccd307
tree62c7da46351a3ac0d4f62345e2b6a23651021097
parent43dd946a54dc73be30d3fab613bb2d3ea8e84bc1
adblock-fast: update to 1.2.4-2

Maintainer: me
Compile tested: x86_64, Dell EMC Edge620, OpenWrt 25.12.4
Run tested: x86_64, Dell EMC Edge620, OpenWrt 25.12.4

Description:
Update to 1.2.4

  - Update PKG_VERSION to 1.2.4 and PKG_RELEASE to 2.
  - Update documentation URL from melmac.ca to mossdef.org.

README.md:
  - Update documentation URL from melmac.ca to mossdef.org.

files/etc/config/adblock-fast:
  - Add default option `download_connect_timeout '10'`.
  - Add default option `download_allow_insecure '1'`.
  - Set default `parallel_downloads` to `8`.
  - Remove commented `download_max_time` line.

files/etc/init.d/adblock-fast:
  - Increment `initCompat` to 17.
  - Add `download_connect_timeout`, `download_max_time`,
    `download_allow_insecure` to config validation schema.

files/etc/uci-defaults/90-adblock-fast:
  - Use `initCompat` from init script to stamp `config_compat`.
  - Migrate `parallel_downloads` from boolean to numeric cap for compat < 15.
  - Seed new `download_connect_timeout` from old `download_timeout`
    for compat < 16.
  - Add new `config_compat` and `config_version` stamping.

files/lib/adblock-fast/adblock-fast.uc:
  - Increment package `compat` to 17.
  - Introduce `task_slot_ram` for per-downloader memory budgeting.
  - Add `download_connect_timeout`, `download_max_time`,
    `download_allow_insecure` to `reload` triggers.
  - Store `downloader` kind and track `_last_dl_timeout` status.
  - Refine downloader detection: prefer curl, then uclient-fetch, then
    GNU wget, finally generic wget.
  - Update `curl` command flags for `--insecure`, `--connect-timeout`,
    `--speed-limit`/`--speed-time`, `--max-time`.
  - Update `uclient-fetch` flags for `--no-check-certificate`.
  - Update `wget` flags for `--no-check-certificate`,
    `--connect-timeout`, `--read-timeout`.
  - Improve SSL support detection for uclient-fetch.
  - Capture `curl` exit code 28 as a distinct timeout failure.
  - Expand `get_text` cases for `errorDetectingFileType`,
    `warningMissingRecommendedPackages` (args), `warningParallelDownloadsThrottled`,
    `warningDownloadTimeout`.
  - Allow `download_allow_insecure` for `get_url_filesize` calls.
  - Set `download_allow_insecure` default to true in `config_schema`.
  - Change `parallel_downloads` from boolean to integer `8` default in
    `config_schema`.
  - Add `download_connect_timeout` and `download_max_time` to `config_schema`.
  - Read up to 4KB for `detect_file_type`.
  - Improve `warningMissingRecommendedPackages` output: list missing
    packages and use `apk` or `opkg` install command.
  - Split `process_file_url` into parallelizable `prepare_file_url`
    and serial `apply_result`, plus `emit_dl_line`.
  - Implement memory-aware throttling for `parallel_downloads`.
  - Revert to single `process_file_url` for serial uses and test runner.
  - Correct `get_mem_available` to return current free memory only.
  - Rename `get_mem_total` to `get_mem_available`.

Signed-off-by: Stan Grishin <redacted>
net/adblock-fast/Makefile
net/adblock-fast/README.md
net/adblock-fast/files/etc/config/adblock-fast
net/adblock-fast/files/etc/init.d/adblock-fast
net/adblock-fast/files/etc/uci-defaults/90-adblock-fast
net/adblock-fast/files/lib/adblock-fast/adblock-fast.uc
net/adblock-fast/tests/01_pipeline/10_servers_mode_allow_list
net/adblock-fast/tests/mocks/uci/adblock-fast.json
net/adblock-fast/tests/run_tests.sh
git clone https://git.99rst.org/PROJECT