summaryrefslogtreecommitdiff
path: root/Documentation/technical/protocol-common.txt
diff options
context:
space:
mode:
authorLars Schneider <larsxschneider@gmail.com>2016-08-29 17:55:09 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-08-30 18:00:29 (GMT)
commit7841c4801ce51f1f62d376d164372e8677c6bc94 (patch)
tree3997218bc933001dddc43247b6b5976726655137 /Documentation/technical/protocol-common.txt
parentb31222cfb7f2fcdc5b3d76ce5fcebf6ff1929826 (diff)
downloadgit-7841c4801ce51f1f62d376d164372e8677c6bc94.zip
git-7841c4801ce51f1f62d376d164372e8677c6bc94.tar.gz
git-7841c4801ce51f1f62d376d164372e8677c6bc94.tar.bz2
pack-protocol: fix maximum pkt-line size
According to LARGE_PACKET_MAX in pkt-line.h the maximal length of a pkt-line packet is 65520 bytes. The pkt-line header takes 4 bytes and therefore the pkt-line data component must not exceed 65516 bytes. Signed-off-by: Lars Schneider <larsxschneider@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/technical/protocol-common.txt')
-rw-r--r--Documentation/technical/protocol-common.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/technical/protocol-common.txt b/Documentation/technical/protocol-common.txt
index d30a1b9..d2a6b26 100644
--- a/Documentation/technical/protocol-common.txt
+++ b/Documentation/technical/protocol-common.txt
@@ -64,9 +64,9 @@ pkt-line parsing/formatting routines are 8-bit clean.
A non-binary line SHOULD BE terminated by an LF, which if present
MUST be included in the total length.
-The maximum length of a pkt-line's data component is 65520 bytes.
-Implementations MUST NOT send pkt-line whose length exceeds 65524
-(65520 bytes of payload + 4 bytes of length data).
+The maximum length of a pkt-line's data component is 65516 bytes.
+Implementations MUST NOT send pkt-line whose length exceeds 65520
+(65516 bytes of payload + 4 bytes of length data).
Implementations SHOULD NOT send an empty pkt-line ("0004").