]> git.ipfire.org Git - thirdparty/openwrt.git/commit
6in4: improve HE tunnel update procedure 22016/head
authorRany Hany <rany_hany@riseup.net>
Sat, 14 Feb 2026 09:12:19 +0000 (11:12 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 14 Feb 2026 23:01:57 +0000 (00:01 +0100)
commit862b46dd8f65ed2ab298b63ca33f672fb6ec3be7
tree00df2ff93d2b379f1796034c5ca53d67a3caf304
parent8904ac2673947d4f5cc81e6de392d0dea7ff5bd3
6in4: improve HE tunnel update procedure

- uclient-fetch timeout bumped from 5s to 15s. If we do not do this
  we get flagged by HE as the update request is expensive and takes
  more than 5s to execute. Currently 5s timeout causes uclient-fetch
  to be killed prematurely as can be seen by the following log:

  10:34:57 user.notice 6in4-henet: update 1/3: timeout
  10:35:07 user.notice 6in4-henet: update 2/3: timeout
  10:35:17 user.notice 6in4-henet: update 3/3: timeout
  10:35:22 user.notice 6in4-henet: update failed

  The above is the worst case, what usually happens is:

  10:53:59 user.notice 6in4-henet: update 1/3: timeout
  10:54:06 user.notice 6in4-henet: update 2/3: abuse
  10:54:06 user.notice 6in4-henet: updated

- We now use an exponential backoff starting from 5 seconds.

- Detect ca-bundle so we don't use --no-check-certificates
  unnecessarily.

- The while loop was changed so we don't retry unnecessarily
  after the final failure.

- Worst-case total time the update operation might take before
  bailing out is:

     (sum(15 + (5 × (2^(x − 1))), 1, 2) + 15) seconds = 1 min

Signed-off-by: Rany Hany <rany_hany@riseup.net>
Link: https://github.com/openwrt/openwrt/pull/22016
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/network/ipv6/6in4/files/6in4.sh