diff options
author | Mark Wooding <mdw@distorted.org.uk> | 2006-02-07 10:07:39 +0000 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-02-07 02:13:02 -0800 |
commit | 53f313897e37f25e1411a6a7cfa328d642847345 (patch) | |
tree | 9e4832af9cef9d576af7cd67fe51d54f9662b761 /http.h | |
parent | 66f04f38f42024dceb1679fc4d672de3746cf237 (diff) | |
download | git-53f313897e37f25e1411a6a7cfa328d642847345.tar.gz |
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 <mdw@distorted.org.uk>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'http.h')
-rw-r--r-- | http.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |