Re: [PATCH v2 3/3] receive-pack: allow a maximum input size to be specified

2016-08-18 Thread Jeff King
On Thu, Aug 18, 2016 at 01:25:43PM -0700, Junio C Hamano wrote: > > diff --git a/Documentation/config.txt b/Documentation/config.txt > > index 0bcb679..f5b6061 100644 > > --- a/Documentation/config.txt > > +++ b/Documentation/config.txt > > @@ -2517,6 +2517,11 @@ receive.unpackLimit:: > >

Re: [PATCH v2 3/3] receive-pack: allow a maximum input size to be specified

2016-08-18 Thread Junio C Hamano
Christian Couder writes: > From: Jeff King > > Receive-pack feeds its input to either index-pack or > unpack-objects, which will happily accept as many bytes as > a sender is willing to provide. Let's allow an arbitrary > cutoff point where we will

[PATCH v2 3/3] receive-pack: allow a maximum input size to be specified

2016-08-18 Thread Christian Couder
From: Jeff King Receive-pack feeds its input to either index-pack or unpack-objects, which will happily accept as many bytes as a sender is willing to provide. Let's allow an arbitrary cutoff point where we will stop writing bytes to disk. Cleaning up what has already been