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

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

From
Ramsay Jones <ramsay@ramsayjones.plus.com>
Date
Apr 4, 2017, 15:20 UTC
Message-ID
<3d351f90-af4f-1ddb-c8a0-3e7926fd722d@ramsayjones.plus.com>
In-Reply-To
<20170403235308.30102-1-dturner@twosigma.com>
On 04/04/17 00:53, David Turner wrote:
Show 14 quoted lines
> Unfortunately, in order to push some large repos, 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>
> ---
> 
> V5 addresses comments from Torsten Boegershausen and Ramsay Jones.  Since
> I don't have a 32-bit machine handy, it's difficult for me to check
> for compiler warnings on 32-bit machines.  Hopefully my guess as
> to the solution to Ramsay's issue will be correct.
Yep, this compiles without complaint.
Thanks!

ATB, Ramsay Jones

Previous: Jeff KingNext: Lars Schneider
Message 4 of 5 in “http.postbuffer: allow full range of ssize_t values”
  1. http.postbuffer: allow full range of ssize_t valuesDavid Turner, Apr 3, 2017
  2. Jonathan NiederApr 4, 2017
  3. Jeff KingApr 4, 2017
  4. Ramsay JonesApr 4, 2017
  5. Lars SchneiderApr 11, 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.