Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json sync leaks go-routine with -watch flag #562

Closed
malud opened this issue Aug 24, 2022 · 0 comments · Fixed by #564
Closed

json sync leaks go-routine with -watch flag #562

malud opened this issue Aug 24, 2022 · 0 comments · Fixed by #564
Labels
bug Something isn't working

Comments

@malud
Copy link
Collaborator

malud commented Aug 24, 2022

Describe the bug
The SyncedJSON new() method is missing the command context to shutdown the initialized goroutine on configuration-file changes. See https://github.com/avenga/couper/blob/master/json/synced_json.go#L53

To Reproduce
Steps to reproduce the behavior:

  1. Which Couper version? Run couper version or docker run avenga/couper version
edge 2022-08-24 add847c
go version go1.19 linux/amd64
  1. Provide your configuration file *.hcl. Remove sensitive data.

https://github.com/avenga/couper-oidc-gateway/blob/master/couper.hcl

  1. Provide a curl call for reproduction
  1. See an error response or error log.

Expected behavior
goroutine shutdown on command cancel

@malud malud added the bug Something isn't working label Aug 24, 2022
@malud malud linked a pull request Oct 6, 2022 that will close this issue
@malud malud closed this as completed Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant