You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/modules
zeripath 858c35b731
Ensure BlameReaders close at end of request (#12102)
#11716 reports multiple git blame processes hanging around
this was thought to be due to timeouts, however on closer look this
appears to be due to the Close() function of the BlameReader hanging
with a blocked stdout pipe.

This PR fixes this Close function to:

* Cancel the context of the cmd
* Close the StdoutReader - ensuring that the output pipe is closed

Further it makes the context of the `git blame` command a child of the
request context - ensuring that even if Close() is not called, on
cancellation of the Request the blame is command will also be cancelled.

Fixes #11716
Closes #11727

Signed-off-by: Andrew Thornton <art27@cantab.net>
4 years ago
..
analyze Exclude generated files from language statistics (#11653) 4 years ago
auth Use google/uuid to instead satori/go.uuid (#11943) 4 years ago
avatar Improve handling of non-square avatars (#7025) 5 years ago
base Add gitea-vet (#10948) 4 years ago
cache make avatar lookup occur at image request (#10540) 4 years ago
charset Fix chardet test and add ordering option (#11621) 4 years ago
context Fix typo (#12013) 4 years ago
convert Honor DEFAULT_PAGING_NUM for API (#11805) 4 years ago
cron Refactor Cron and merge dashboard tasks (#10745) 4 years ago
emoji Update emoji dataset with skin tone variants (#11678) 4 years ago
eventsource Add EventSource support (#11235) 4 years ago
generate Add gitea-vet (#10948) 4 years ago
git Ensure BlameReaders close at end of request (#12102) 4 years ago
gitgraph Move git graph from models to modules/graph (#9027) 5 years ago
graceful Handle panics that percolate up to the graceful module (#11291) 4 years ago
highlight Server-side syntax highlighting for all code (#12047) 4 years ago
httplib Add golangci (#6418) 5 years ago
indexer Server-side syntax highlighting for all code (#12047) 4 years ago
lfs Support Range header end in lfs (#11314) 4 years ago
log modules/log: remove noop written variables (#10182) 4 years ago
markup Server-side syntax highlighting for all code (#12047) 4 years ago
metrics Prometheus endpoint (#5256) 6 years ago
migrations Use google/uuid to instead satori/go.uuid (#11943) 4 years ago
notification Add push commits history comment on PR time-line (#11167) 4 years ago
options Rename scripts to build and add revive command as a new build tool command (#10942) 4 years ago
password Add password requirement info on error (#9074) 5 years ago
pprof Add golangci (#6418) 5 years ago
private Upgrade golangci-lint to 1.24.0 (#10894) 4 years ago
process Only write to global gitconfig if necessary (#11876) 4 years ago
public Move fomantic and jQuery to main webpack bundle (#11997) 4 years ago
queue Prevent timer leaks in Workerpool and others (#11333) 4 years ago
recaptcha fixed reCAPTCHA URL (#9083) 5 years ago
references Accept punctuation after simple+cross repository issue references (#10091) 4 years ago
repofiles Server-side syntax highlighting for all code (#12047) 4 years ago
repository Global default branch setting (#11918) 4 years ago
secret Integrate OAuth2 Provider (#5378) 5 years ago
session Prevent (caught) panic on login (#11590) 4 years ago
setting Global default branch setting (#11918) 4 years ago
ssh log.Fatal on failure to listen to SSH port (#10795) 4 years ago
structs API: Move AllowedReactions endpoint into GetGenneralUI endpoint + creat new swagger section settings (#11854) 4 years ago
sync Fix missing unlock in uniquequeue (#9790) 5 years ago
task Move create/fork repository from models to modules/repository (#9489) 5 years ago
templates [UI] Sortable Tables Header By Click (#7980) 4 years ago
test Add Organization Wide Labels (#10814) 4 years ago
timeutil Fix timezone on issue deadline (#11697) 4 years ago
upload Fix upload file type check (#7890) 5 years ago
user Add gitea-vet (#10948) 4 years ago
util Prevent timer leaks in Workerpool and others (#11333) 4 years ago
validation [API] Get a single commit via Ref (#10915) 4 years ago
webhook Fix comments webhook panic (#12046) 4 years ago