mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-23 08:56:29 +00:00
00f72ef206
The `Config.Services.Pubsub.Subscribe` is being initialized with the global Gin Context. This causes the publisher object to [hang at line 58](https://github.com/cncd/pubsub/blob/master/pub.go#L58) and the goroutine remains opened indefinetly, which can be a source of memory leak. Setting it to the locally defined ctx object correctly causes the goroutine to close when the function exits due to the deferred close. See https://discourse.drone.io/t/memory-leak-on-drone-server/1884 for further information. |
||
---|---|---|
.. | ||
debug | ||
metrics | ||
swagger | ||
web | ||
badge.go | ||
build.go | ||
file.go | ||
hook.go | ||
hook_test.go | ||
login.go | ||
registry.go | ||
repo.go | ||
rpc.go | ||
secret.go | ||
stream.go | ||
sync.go | ||
user.go | ||
users.go | ||
z.go |