Skip to content

Commit 7841c48

Browse files
larsxschneidergitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b31222c commit 7841c48

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Documentation/technical/protocol-common.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ pkt-line parsing/formatting routines are 8-bit clean.
6464
A non-binary line SHOULD BE terminated by an LF, which if present
6565
MUST be included in the total length.
6666

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).
7070

7171
Implementations SHOULD NOT send an empty pkt-line ("0004").
7272

0 commit comments

Comments
 (0)