git-commit-vandalism/Documentation/technical
Masaya Suzuki 2d103c31c2 pack-protocol.txt: accept error packets in any context
In the Git pack protocol definition, an error packet may appear only in
a certain context. However, servers can face a runtime error (e.g. I/O
error) at an arbitrary timing. This patch changes the protocol to allow
an error packet to be sent instead of any packet.

Without this protocol spec change, when a server cannot process a
request, there's no way to tell that to a client. Since the server
cannot produce a valid response, it would be forced to cut a connection
without telling why. With this protocol spec change, the server can be
more gentle in this situation. An old client may see these error packets
as an unexpected packet, but this is not worse than having an unexpected
EOF.

Following this protocol spec change, the error packet handling code is
moved to pkt-line.c. Implementation wise, this implementation uses
pkt-line to communicate with a subprocess. Since this is not a part of
Git protocol, it's possible that a packet that is not supposed to be an
error packet is mistakenly parsed as an error packet. This error packet
handling is enabled only for the Git pack protocol parsing code
considering this.

Signed-off-by: Masaya Suzuki <masayasuzuki@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2019-01-02 13:05:30 -08:00
..
.gitignore
api-allocation-growing.txt
api-argv-array.txt
api-config.txt
api-credentials.txt
api-diff.txt diff.c: remove implicit dependency on the_index 2018-09-21 09:48:10 -07:00
api-directory-listing.txt
api-error-handling.txt
api-gitattributes.txt
api-grep.txt
api-history-graph.txt docs: graph: remove unnecessary `graph_update()' call 2018-10-07 10:10:49 +09:00
api-index-skel.txt
api-index.sh
api-merge.txt
api-object-access.txt
api-oid-array.txt
api-parse-options.txt parse-options: drop OPT_DATE() 2018-11-06 12:56:14 +09:00
api-quote.txt
api-ref-iteration.txt
api-remote.txt
api-revision-walking.txt revision.c: remove implicit dependency on the_index 2018-09-21 09:51:19 -07:00
api-run-command.txt
api-setup.txt
api-sigchain.txt
api-submodule-config.txt
api-trace.txt
api-tree-walking.txt
api-xdiff-interface.txt
bitmap-format.txt
commit-graph-format.txt
commit-graph.txt Merge branch 'ma/commit-graph-docs' 2018-10-16 16:16:05 +09:00
directory-rename-detection.txt
hash-function-transition.txt
http-protocol.txt
index-format.txt ieot: add Index Entry Offset Table (IEOT) extension 2018-10-11 15:32:48 +09:00
long-running-process-protocol.txt
multi-pack-index.txt
pack-format.txt
pack-heuristics.txt
pack-protocol.txt pack-protocol.txt: accept error packets in any context 2019-01-02 13:05:30 -08:00
partial-clone.txt
protocol-capabilities.txt
protocol-common.txt
protocol-v2.txt
racy-git.txt
repository-version.txt doc: move extensions.worktreeConfig to the right place 2018-11-16 14:10:31 +09:00
rerere.txt rerere: mention caveat about unmatched conflict markers 2018-08-29 08:54:11 -07:00
send-pack-pipeline.txt
shallow.txt
signature-format.txt
trivial-merge.txt