mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 02:00:31 +08:00
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>