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>
This commit is contained in:
Junio C Hamano
2006-09-10 16:27:08 -07:00
parent 958c24b1b8
commit d47f3db75c
4 changed files with 20 additions and 9 deletions

View File

@ -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])