From 53f313897e37f25e1411a6a7cfa328d642847345 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Tue, 7 Feb 2006 10:07:39 +0000 Subject: http-fetch: Abort requests for objects which arrived in packs In fetch_object, there's a call to release an object request if the object mysteriously arrived, say in a pack. Unfortunately, the fetch attempt for this object might already be in progress, and we'll leak the descriptor. Instead, try to tidy away the request. Signed-off-by: Mark Wooding Signed-off-by: Junio C Hamano --- http.h | 1 + 1 file changed, 1 insertion(+) (limited to 'http.h') diff --git a/http.h b/http.h index d6dc9d89fb..36fa154d2f 100644 --- a/http.h +++ b/http.h @@ -61,6 +61,7 @@ extern struct active_request_slot *get_active_slot(void); extern int start_active_slot(struct active_request_slot *slot); extern void run_active_slot(struct active_request_slot *slot); extern void finish_all_active_slots(void); +extern void release_active_slot(struct active_request_slot *slot); #ifdef USE_CURL_MULTI extern void fill_active_slots(void); -- cgit v1.3-5-g6428