use-phase-timeout.patch (1460B)
1 Description: Use the test phase deadline for curl requests 2 The fixed 50 ms connection timeout aborts TLS handshakes under arm64 3 emulation. Use the existing phase budget for the client request too; 4 the test harness continues to enforce the overall phase deadline. 5 This changes test code only. 6 Author: Taler Packaging Team <deb@taler.net> 7 Forwarded: no 8 Last-Update: 2026-09-10 9 10 --- a/src/tests/client_server/libtest_convenience_client_request.c 11 +++ b/src/tests/client_server/libtest_convenience_client_request.c 12 @@ -268,21 +268,21 @@ 13 if ((CURLE_OK != 14 curl_easy_setopt (c, 15 CURLOPT_TIMEOUT_MS, 16 - 500)) 17 + (long) pc->phase->timeout_ms)) 18 || (CURLE_OK != 19 curl_easy_setopt (c, 20 CURLOPT_CONNECTTIMEOUT_MS, 21 - 50)) || 22 + (long) pc->phase->timeout_ms)) || 23 #ifdef CURLOPT_SERVER_RESPONSE_TIMEOUT_MS 24 (CURLE_OK != 25 curl_easy_setopt (c, 26 CURLOPT_SERVER_RESPONSE_TIMEOUT_MS, 27 - 250)) || 28 + (long) pc->phase->timeout_ms)) || 29 #else 30 (CURLE_OK != 31 curl_easy_setopt (c, 32 CURLOPT_SERVER_RESPONSE_TIMEOUT, 33 - 1)) || 34 + (long) (pc->phase->timeout_ms + 999) / 1000)) || 35 #endif 36 (CURLE_OK != 37 curl_easy_setopt (c,