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>

Lars Schneider committed Aug 29, 2016 at 19:55 UTC 7841c4801ce51f1f62d376d164372e8677c6bc94
1 file changed +3 -3
Documentation/technical/protocol-common.txt
+3 -3
@@ -64,9 +64,9 @@ pkt-line parsing/formatting routines are 8-bit clean.
64 A non-binary line SHOULD BE terminated by an LF, which if present
65 MUST be included in the total length.
66
67 -The maximum length of a pkt-line's data component is 65520 bytes.
68 -Implementations MUST NOT send pkt-line whose length exceeds 65524
69 -(65520 bytes of payload + 4 bytes of length data).
67 +The maximum length of a pkt-line's data component is 65516 bytes.
68 +Implementations MUST NOT send pkt-line whose length exceeds 65520
69 +(65516 bytes of payload + 4 bytes of length data).
70
71 Implementations SHOULD NOT send an empty pkt-line ("0004").
72