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/modules/migrations
zeripath 86863ae939
Prevent timer leaks in Workerpool and others (#11333) (#11340)
There is a potential memory leak in `Workerpool` due to the intricacies of
`time.Timer` stopping.

Whenever a `time.Timer` is `Stop`ped its channel must be cleared using a
`select` if the result of the `Stop()` is `false`.

Unfortunately in `Workerpool` these were checked the wrong way round.

However, there were a few other places that were not being checked.

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
5 years ago
..
base Fix missing updated time on migrated issues and comments (#9744) (#9764) 5 years ago
error.go Improve migrations to support migrating milestones/labels/issues/comments/pullrequests (#6290) 6 years ago
git.go Sleep longer if request speed is over github limitation (#9335) 5 years ago
gitea.go Fix missing updated time on migrated issues and comments (#9744) (#9764) 5 years ago
gitea_test.go Sleep longer if request speed is over github limitation (#9335) 5 years ago
github.go Prevent timer leaks in Workerpool and others (#11333) (#11340) 5 years ago
github_test.go [Backport] CI optimisation & add github token env var (#9875) 5 years ago
main_test.go Improve migrations to support migrating milestones/labels/issues/comments/pullrequests (#6290) 6 years ago
migrate.go Use OriginalURL insead of CloneAddr in migration logging (#9418) 5 years ago
update.go Graceful: Xorm, RepoIndexer, Cron and Others (#9282) 5 years ago