git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v6] http.postbuffer: allow full range of ssize_t values

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Apr 11, 2017, 18:27 UTC
Message-ID
<20170411182740.GO8741@aiede.mtv.corp.google.com>
In-Reply-To
<20170411181357.16580-1-dturner@twosigma.com>
David Turner wrote:
Show 16 quoted lines
> 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>
> ---
>  cache.h       |  1 +
>  config.c      | 17 +++++++++++++++++
>  http.c        |  6 ++++--
>  http.h        |  2 +-
>  remote-curl.c | 12 +++++++++---
>  5 files changed, 32 insertions(+), 6 deletions(-)

The only unresolved issue was whether we can count on curl being new enough for CURLOPT_POSTFIELDSIZE_LARGE to be present. I say "unresolved" but it is resolved in my mind since git doesn't build and pass tests with such old versions of curl --- what's unresolved is formalizing what the oldest curl version is that we want to support. And that doesn't need to hold this patch hostage.

So for what it's worth,
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Thank you.
Previous: David TurnerNext: Jeff King
Message 2 of 5 in “http.postbuffer: allow full range of ssize_t values”
  1. http.postbuffer: allow full range of ssize_t valuesDavid Turner, Apr 11, 2017
  2. Jonathan NiederApr 11, 2017
  3. Jeff KingApr 11, 2017
  4. Junio C HamanoApr 12, 2017
  5. Jeff KingApr 12, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.