Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-09-11 03:27:08 +0400
committerJunio C Hamano <junkio@cox.net>2006-09-11 03:27:08 +0400
commitd47f3db75c58139cdcbca5cc63b17bf5db293b6a (patch)
treedc46b01a0ec82e6450e841638486bbb2caeabb78 /fetch-clone.c
parent958c24b1b8f463bca857f45c41a2f8198e345c2f (diff)
Prepare larger packet buffer for upload-pack protocol.
The original side-band support added to the upload-pack protocol used the default 1000-byte packet length. The pkt-line format allows up to 64k, so prepare the receiver for the maximum size, and have the uploader and downloader negotiate if larger packet length is allowed. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'fetch-clone.c')
-rw-r--r--fetch-clone.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fetch-clone.c b/fetch-clone.c
index b62feac17d..b632ca0438 100644
--- a/fetch-clone.c
+++ b/fetch-clone.c
@@ -115,7 +115,7 @@ static pid_t setup_sideband(int sideband, const char *me, int fd[2], int xd[2])
die("%s: unable to fork off sideband demultiplexer", me);
if (!side_pid) {
/* subprocess */
- char buf[DEFAULT_PACKET_MAX];
+ char buf[LARGE_PACKET_MAX];
close(fd[0]);
if (xd[0] != xd[1])