Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
End a request quietly when the client has gone
A write that failed with EPIPE on an uncached page died into an error page, which died again at exit when the page could not be sent either, and git logged a recursion warning on every dropped connection. A filter that exits early fails a write the same way, so the quiet exit is kept for writes that reach the client itself.
-rw-r--r--source/cache.c3
-rw-r--r--source/cgit.c4
-rw-r--r--source/filter.c5
-rw-r--r--source/filter.h6
-rw-r--r--source/html.c20
-rwxr-xr-xtests/t0303-robustness.sh16
6 files changed, 50 insertions, 4 deletions