mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
http.postbuffer: allow full range of ssize_t values
Unfortunately, in order to push some large repos where a server does not support chunked encoding, the http postbuffer must sometimes exceed two gigabytes. On a 64-bit system, this is OK: we just malloc a larger buffer. This means that we need to use CURLOPT_POSTFIELDSIZE_LARGE to set the buffer size. Signed-off-by: David Turner <dturner@twosigma.com> Reviewed-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
b14f27f917
commit
37ee680d9b
2
http.h
2
http.h
@@ -111,7 +111,7 @@ extern struct curl_slist *http_copy_default_headers(void);
|
||||
extern long int git_curl_ipresolve;
|
||||
extern int active_requests;
|
||||
extern int http_is_verbose;
|
||||
extern size_t http_post_buffer;
|
||||
extern ssize_t http_post_buffer;
|
||||
extern struct credential http_auth;
|
||||
|
||||
extern char curl_errorstr[CURL_ERROR_SIZE];
|
||||
|
||||
Reference in New Issue
Block a user