aboutsummaryrefslogtreecommitdiffstats
path: root/http.h
diff options
context:
space:
mode:
authorNick Hengeveld <nickh@reactrix.com>2006-01-31 11:06:55 -0800
committerJunio C Hamano <junkio@cox.net>2006-01-31 16:17:24 -0800
commitc8568e139ed2149fbfb7ef9a8d819d5b6b7c554f (patch)
treee44ab4d957ab445b6c1e5f3479f8c27c02ce3ab7 /http.h
parent7ec57556b29c3ed42769c122228ee4621676b642 (diff)
downloadgit-c8568e139ed2149fbfb7ef9a8d819d5b6b7c554f.tar.gz
Fix HTTP request result processing after slot reuse
Add a way to store the results of an HTTP request when a slot finishes so the results can be processed after the slot has been reused. Signed-off-by: Nick Hengeveld <nickh@reactrix.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'http.h')
-rw-r--r--http.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/http.h b/http.h
index ed4ea3340e..d6dc9d89fb 100644
--- a/http.h
+++ b/http.h
@@ -22,6 +22,12 @@
#define NO_CURL_EASY_DUPHANDLE
#endif
+struct slot_results
+{
+ CURLcode curl_result;
+ long http_code;
+};
+
struct active_request_slot
{
CURL *curl;
@@ -29,6 +35,7 @@ struct active_request_slot
int in_use;
CURLcode curl_result;
long http_code;
+ struct slot_results *results;
void *callback_data;
void (*callback_func)(void *data);
struct active_request_slot *next;