We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2eee139 + 44d8dc5 commit 96220d8Copy full SHA for 96220d8
builtin/fetch-pack.c
@@ -230,16 +230,17 @@ static void insert_alternate_refs(void)
230
}
231
232
#define INITIAL_FLUSH 16
233
+#define PIPESAFE_FLUSH 32
234
#define LARGE_FLUSH 1024
235
236
static int next_flush(int count)
237
{
- if (count < INITIAL_FLUSH * 2)
238
- count += INITIAL_FLUSH;
239
- else if (count < LARGE_FLUSH)
+ int flush_limit = args.stateless_rpc ? LARGE_FLUSH : PIPESAFE_FLUSH;
+
240
+ if (count < flush_limit)
241
count <<= 1;
242
else
- count += LARGE_FLUSH;
243
+ count += flush_limit;
244
return count;
245
246
0 commit comments