{"thread":{"id":"29938","subject":"[PATCH v5 5/5] http: rename HTTP_REAUTH to HTTP_RETRY","startedAt":"2012-03-13T14:06:29Z","lastAt":"2012-03-13T14:06:29Z","messageCount":1,"participants":["Nelson Benitez Leon"],"isPatch":true,"patchVersion":5,"patchTotal":5},"messages":[{"id":"186857","messageId":"4F5F5465.2080206@seap.minhap.es","threadId":"29938","inReplyTo":null,"subject":"[PATCH v5 5/5] http: rename HTTP_REAUTH to HTTP_RETRY","fromName":"Nelson Benitez Leon","fromEmail":"nelsonjesus.benitez@seap.minhap.es","sentAt":"2012-03-13T14:06:29Z","receivedAt":"2012-03-13T14:06:29Z","isPatch":true,"sender":{"key":"nelsonjesus.benitez@seap.minhap.es","avatar":null},"body":"After adding the proxy authentication support in\nhttp, the semantics of HTTP_REAUTH changed more to\na retry rather than a re-authentication, so we\nrename it to HTTP_RETRY.\n\nSigned-off-by: Nelson Benitez Leon <nbenitezl@gmail.com>\n---\n http.c |    6 +++---\n http.h |    2 +-\n 2 files changed, 4 insertions(+), 4 deletions(-)\n\ndiff --git a/http.c b/http.c\nindex 12dcaa1..bc470e8 100644\n--- a/http.c\n+++ b/http.c\n@@ -837,7 +837,7 @@ static int http_request(const char *url, void *result, int target, int options)\n \t\t\t} else {\n \t\t\t\tcredential_fill(&http_auth);\n \t\t\t\tinit_curl_http_auth(slot->curl);\n-\t\t\t\tret = HTTP_REAUTH;\n+\t\t\t\tret = HTTP_RETRY;\n \t\t\t}\n \t\t} else if (results.http_code == 407) { /* Proxy authentication failure */\n \t\t\tif (proxy_auth.username && proxy_auth.password) {\n@@ -846,7 +846,7 @@ static int http_request(const char *url, void *result, int target, int options)\n \t\t\t} else {\n \t\t\t\tcredential_fill(&proxy_auth);\n \t\t\t\tset_proxy_auth(slot->curl);\n-\t\t\t\tret = HTTP_REAUTH;\n+\t\t\t\tret = HTTP_RETRY;\n \t\t\t}\n \t\t} else {\n \t\t\tif (!curl_errorstr[0])\n@@ -876,7 +876,7 @@ static int http_request_reauth(const char *url, void *result, int target,\n \n \tdo {\n \t\tret = http_request(url, result, target, options);\n-\t} while (ret == HTTP_REAUTH);\n+\t} while (ret == HTTP_RETRY);\n \n \treturn ret;\n }\ndiff --git a/http.h b/http.h\nindex 303eafb..3936f7f 100644\n--- a/http.h\n+++ b/http.h\n@@ -123,7 +123,7 @@ extern char *get_remote_object_url(const char *url, const char *hex,\n #define HTTP_MISSING_TARGET\t1\n #define HTTP_ERROR\t\t2\n #define HTTP_START_FAILED\t3\n-#define HTTP_REAUTH\t4\n+#define HTTP_RETRY\t4\n #define HTTP_NOAUTH\t5\n \n /*\n-- \n1.7.7.6\n"}]}