git-commit-vandalism/t/lib-httpd
Denton Liu 74b082ad34 remote-curl: error on incomplete packet
Currently, remote-curl acts as a proxy and blindly forwards packets
between an HTTP server and fetch-pack. In the case of a stateless RPC
connection where the connection is terminated with a partially written
packet, remote-curl will blindly send the partially written packet
before waiting on more input from fetch-pack. Meanwhile, fetch-pack will
read the partial packet and continue reading, expecting more input. This
results in a deadlock between the two processes.

For a stateless connection, inspect packets before sending them and
error out if a packet line packet is incomplete.

Helped-by: Jeff King <peff@peff.net>
Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2020-05-24 16:26:00 -07:00
..
apache.conf remote-curl: error on incomplete packet 2020-05-24 16:26:00 -07:00
apply-one-time-perl.sh t/lib-httpd: avoid using macOS' sed 2020-02-27 09:58:41 -08:00
broken-smart-http.sh t/lib-httpd: use write_script to copy CGI scripts 2014-05-23 12:41:50 -07:00
error-smart-http.sh t5551: test server-side ERR packet 2019-02-06 12:20:23 -08:00
error.sh http: fix charset detection of extract_content_type() 2014-06-17 15:25:00 -07:00
incomplete-body-upload-pack-v2-http.sh remote-curl: error on incomplete packet 2020-05-24 16:26:00 -07:00
incomplete-length-upload-pack-v2-http.sh remote-curl: error on incomplete packet 2020-05-24 16:26:00 -07:00
passwd use distinct username/password for http auth tests 2014-01-02 10:25:03 -08:00
ssl.cnf