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/routers
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
..
admin Refactor Cron and merge dashboard tasks (#10745) 4 years ago
api/v1 Do not override API issue pagination with UI settings (#12068) 4 years ago
dev Display ui time with customize time location (#7792) 5 years ago
events Add EventSource support (#11235) 4 years ago
org Fix visibility of forked public repos from private orgs (#11717) 4 years ago
private Protect default branch against deletion (#11115) 4 years ago
repo Ensure BlameReaders close at end of request (#12102) 4 years ago
routes Move serviceworker to workbox and fix SSE interference (#11538) 4 years ago
user Add hide activity option (#11353) 4 years ago
utils Handle push rejection message in Merge & Web Editor (#10373) 4 years ago
home.go Ensure public repositories in private organizations are visible and fix admin organizations list (#11465) 4 years ago
init.go Refactor Cron and merge dashboard tasks (#10745) 4 years ago
install.go Whenever the ctx.Session is updated, release it to save it before sending the redirect (#11456) 4 years ago
metrics.go Use gitea forked macaron (#7933) 5 years ago
swagger_json.go Add gitea-vet (#10948) 4 years ago