Files
radicle-explorer/explorer/crates
Yorgos SaslisandDaniel Norman ff6c49c064 httpd: End truncated git responses with an error
A killed or failed git process still ended the response body
cleanly, so clients saw a complete 200 with a truncated body.

Wait for the exit status and end the body with an error when the
output was cut short, so hyper aborts the connection. For `git
archive` that is any unsuccessful exit. `git http-backend` exits
with 1 both after an in-band protocol error and when its
`upload-pack` dies, so for it only death by a signal counts. A
clone cut short by a dying `upload-pack` still ends cleanly, but the
client detects the incomplete pack from its framing.

Test the exit statuses, the body errors, the process group and the
kill on drop.

Co-authored-by: Daniel Norman <daniel@norman.life>
2026-11-26 11:21:45 +01:00
..