git/t/lib-httpd
Michael Montalbo e43647bf0e t/lib-httpd: make http-429 first-request check atomic
http-429.sh is a helper for testing retry logic. It uses "test -f" to
check for the existence of a state file and later uses "touch" or
"rm -f" on that file to determine if it should return a 429. This method
of managing state can fail if the helper script is invoked concurrently.
However, this failure does not currently manifest itself since the
helper is invoked sequentially.

As a preventive measure, fix the state management logic so it relies on
an atomic mkdir operation to mark that a 429 was returned. When
$retry_after is "permanent", always return 429 now that we do not rely
on a state file that is "touch"ed and "rm"ed to indicate when to respond
with a 429.

Signed-off-by: Michael Montalbo <mmontalbo@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2026-08-31 21:11:26 -07:00
..
apache.conf t/lib-httpd: bump apache timeout 2026-06-28 08:32:36 -07:00
apply-one-time-script.sh t/lib-httpd: fix apply-one-time-script race under concurrent requests 2026-08-31 21:11:26 -07:00
broken-smart-http.sh
error-no-report.sh
error-smart-http.sh
error.sh
http-429.sh t/lib-httpd: make http-429 first-request check atomic 2026-08-31 21:11:26 -07:00
incomplete-body-upload-pack-v2-http.sh
incomplete-length-upload-pack-v2-http.sh
nph-custom-auth.sh t5563: refactor for multi-stage authentication 2024-04-16 22:39:08 -07:00
passwd t5550: add netrc tests for http 401/403 2026-01-08 11:02:39 +09:00
proxy-passwd t/lib-httpd: stop using legacy crypt(3) for authentication 2023-11-11 09:00:42 +09:00
ssl.cnf t/lib-httpd: increase ssl key size to 2048 bits 2023-02-01 10:10:34 -08:00