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.
gitea/routers/repo
zeripath 20c2bdf86b
Ensure BlameReaders close at end of request (#12102) (#12103)
Backport #12102

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>
5 years ago
..
activity.go
attachment.go
blame.go Ensure BlameReaders close at end of request (#12102) (#12103) 5 years ago
branch.go Handle more pathological branch and tag names (#11843) (#11863) 5 years ago
commit.go
compare.go Handle more pathological branch and tag names (#11843) (#11863) 5 years ago
download.go
editor.go
editor_test.go
http.go Fix missing authorization check on pull for public repos of private/limited org (#11656) (#11682) 5 years ago
issue.go
issue_dependency.go
issue_label.go
issue_label_test.go
issue_lock.go
issue_stopwatch.go
issue_timetrack.go
issue_watch.go
lfs.go
main_test.go
middlewares.go
milestone.go
pull.go Handle more pathological branch and tag names (#11843) (#11863) 5 years ago
pull_review.go
release.go Honor DEFAULT_PAGING_NUM for API (#11805) (#11813) 5 years ago
release_test.go
repo.go Global default branch setting (#11918) (#11937) 5 years ago
search.go
setting.go Fix doer of rename repo (#11789) (#11794) 5 years ago
setting_protected_branch.go
settings_test.go
topic.go
view.go Allow different HardBreaks settings for documents and comments (#11515) (#11599) 5 years ago
webhook.go
wiki.go Allow different HardBreaks settings for documents and comments (#11515) (#11599) 5 years ago
wiki_test.go