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>
This commit is contained in:
parent
b31222cfb7
commit
7841c4801c
@ -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
|
A non-binary line SHOULD BE terminated by an LF, which if present
|
||||||
MUST be included in the total length.
|
MUST be included in the total length.
|
||||||
|
|
||||||
The maximum length of a pkt-line's data component is 65520 bytes.
|
The maximum length of a pkt-line's data component is 65516 bytes.
|
||||||
Implementations MUST NOT send pkt-line whose length exceeds 65524
|
Implementations MUST NOT send pkt-line whose length exceeds 65520
|
||||||
(65520 bytes of payload + 4 bytes of length data).
|
(65516 bytes of payload + 4 bytes of length data).
|
||||||
|
|
||||||
Implementations SHOULD NOT send an empty pkt-line ("0004").
|
Implementations SHOULD NOT send an empty pkt-line ("0004").
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user