[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnurl] 143/222: curl: ensure HTTP 429 triggers --retry
From: |
gnunet |
Subject: |
[gnurl] 143/222: curl: ensure HTTP 429 triggers --retry |
Date: |
Thu, 07 Nov 2019 00:10:39 +0100 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnurl.
commit f7f0b0012d42db74a293d4df19b39644015f1868
Author: Stian Soiland-Reyes <address@hidden>
AuthorDate: Fri Oct 4 16:18:23 2019 +0100
curl: ensure HTTP 429 triggers --retry
This completes #3794.
Also make sure the new tests from #4195 are enabled
Closes #4465
---
src/tool_operate.c | 1 +
tests/data/Makefile.inc | 2 +-
tests/data/test1596 | 2 +-
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/tool_operate.c b/src/tool_operate.c
index c2fed998c..b82a6672d 100644
--- a/src/tool_operate.c
+++ b/src/tool_operate.c
@@ -468,6 +468,7 @@ static CURLcode post_per_transfer(struct GlobalConfig
*global,
curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &response);
switch(response) {
+ case 429: /* Too Many Requests (RFC6585) */
case 500: /* Internal Server Error */
case 502: /* Bad Gateway */
case 503: /* Service Unavailable */
diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc
index 5b0af4e30..f082cc46a 100644
--- a/tests/data/Makefile.inc
+++ b/tests/data/Makefile.inc
@@ -179,7 +179,7 @@ test1540 test1541 \
test1550 test1551 test1552 test1553 test1554 test1555 test1556 test1557 \
test1558 test1559 test1560 test1561 test1562 test1563 \
\
-test1590 test1591 test1592 test1593 test1594 \
+test1590 test1591 test1592 test1593 test1594 test1595 test1596 \
\
test1600 test1601 test1602 test1603 test1604 test1605 test1606 test1607 \
test1608 test1609 test1620 test1621 \
diff --git a/tests/data/test1596 b/tests/data/test1596
index 9a8cb480e..77a10f08a 100644
--- a/tests/data/test1596
+++ b/tests/data/test1596
@@ -12,7 +12,7 @@ If-Modified-Since
# Server-side
<reply>
<data nocheck="yes">
-HTTP/1.1 503 Error
+HTTP/1.1 429 Too Many Requests
Date: Thu, 11 Jul 2019 02:26:59 GMT
Server: test-server/swsclose
Retry-After: Thu, 11 Jul 2024 02:26:59 GMT
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [gnurl] 117/222: BINDINGS: PureBasic, Net::Curl for perl and Nim, (continued)
- [gnurl] 117/222: BINDINGS: PureBasic, Net::Curl for perl and Nim, gnunet, 2019/11/06
- [gnurl] 133/222: RELEASE-NOTES: synced, gnunet, 2019/11/06
- [gnurl] 134/222: ESNI: initial build/setup, gnunet, 2019/11/06
- [gnurl] 135/222: CURLMOPT_MAX_CONCURRENT_STREAMS.3: fix SEE ALSO typo, gnunet, 2019/11/06
- [gnurl] 141/222: ngtcp2: adapt to API change, gnunet, 2019/11/06
- [gnurl] 140/222: cookies: change argument type for Curl_flush_cookies, gnunet, 2019/11/06
- [gnurl] 142/222: winbuild: add ENABLE_UNICODE option, gnunet, 2019/11/06
- [gnurl] 145/222: build: Remove unused HAVE_LIBSSL and HAVE_LIBCRYPTO defines, gnunet, 2019/11/06
- [gnurl] 151/222: cirrus: Switch the FreeBSD 11.x build to 11.3 and add a 13.0 build., gnunet, 2019/11/06
- [gnurl] 148/222: CURLOPT_TIMEOUT.3: remove the mention of "minutes", gnunet, 2019/11/06
- [gnurl] 143/222: curl: ensure HTTP 429 triggers --retry,
gnunet <=
- [gnurl] 149/222: TODO: Consult %APPDATA% also for .netrc, gnunet, 2019/11/06
- [gnurl] 146/222: ldap: fix OOM error on missing query string, gnunet, 2019/11/06
- [gnurl] 138/222: urlapi: fix use-after-free bug, gnunet, 2019/11/06
- [gnurl] 153/222: docs: make sure the --no-progress-meter docs file is in dist too, gnunet, 2019/11/06
- [gnurl] 154/222: cirrus: Increase the git clone depth., gnunet, 2019/11/06
- [gnurl] 152/222: docs: document it as --no-progress-meter instead of the reverse, gnunet, 2019/11/06
- [gnurl] 159/222: RELEASE-NOTES: synced, gnunet, 2019/11/06
- [gnurl] 157/222: cirrus: switch off blackhole status on the freebsd CI machines, gnunet, 2019/11/06
- [gnurl] 106/222: vtls: Fix comment typo about macosx-version-min compiler flag, gnunet, 2019/11/06
- [gnurl] 136/222: docs: add note on failed handles not being counted by curl_multi_perform, gnunet, 2019/11/06