diff options
author | Junio C Hamano <junkio@cox.net> | 2006-09-10 16:27:08 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-09-10 16:27:08 -0700 |
commit | d47f3db75c58139cdcbca5cc63b17bf5db293b6a (patch) | |
tree | dc46b01a0ec82e6450e841638486bbb2caeabb78 /sideband.h | |
parent | 958c24b1b8f463bca857f45c41a2f8198e345c2f (diff) | |
download | git-d47f3db75c58139cdcbca5cc63b17bf5db293b6a.tar.gz |
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 'sideband.h')
-rw-r--r-- | sideband.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sideband.h b/sideband.h index c645cf2c52..4872106fa0 100644 --- a/sideband.h +++ b/sideband.h @@ -5,6 +5,7 @@ #define SIDEBAND_REMOTE_ERROR -1 #define DEFAULT_PACKET_MAX 1000 +#define LARGE_PACKET_MAX 65520 int recv_sideband(const char *me, int in_stream, int out, int err, char *, int); ssize_t send_sideband(int fd, int band, const char *data, ssize_t sz, int packet_max); |