From df26c471278f13ca6ad96b12a533ef4172323c13 Mon Sep 17 00:00:00 2001 From: Mika Fischer Date: Fri, 4 Nov 2011 15:19:27 +0100 Subject: http.c: Rely on select instead of tracking whether data was received Since now select is used with the file descriptors of the http connections, tracking whether data was received recently (and trying to read more in that case) is no longer necessary. Instead, always call select and rely on it to return as soon as new data can be read. Signed-off-by: Mika Fischer Helped-by: Jeff King Signed-off-by: Junio C Hamano --- http.h | 1 - 1 file changed, 1 deletion(-) (limited to 'http.h') diff --git a/http.h b/http.h index 19b7134fa..d0089d1f7 100644 --- a/http.h +++ b/http.h @@ -89,7 +89,6 @@ extern void step_active_slots(void); extern void http_init(struct remote *remote); extern void http_cleanup(void); -extern int data_received; extern int active_requests; extern int http_is_verbose; extern size_t http_post_buffer; -- cgit v1.2.1 From 093c44a3600323c3ca7a8d28a0d2ba2bc145dd47 Mon Sep 17 00:00:00 2001 From: Jeff King Date: Fri, 4 Nov 2011 13:53:33 -0400 Subject: http: drop "local" member from request struct This is a FILE pointer in the case that we are sending our output to a file. We originally used it to run ftell() to determine whether data had been written to our file during our last call to curl. However, as of the last patch, we no longer care about that flag anymore. All uses of this struct member are now just book-keeping that can go away. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- http.h | 1 - 1 file changed, 1 deletion(-) (limited to 'http.h') diff --git a/http.h b/http.h index d0089d1f7..368bc0e80 100644 --- a/http.h +++ b/http.h @@ -49,7 +49,6 @@ struct slot_results { struct active_request_slot { CURL *curl; - FILE *local; int in_use; CURLcode curl_result; long http_code; -- cgit v1.2.1