ari-proxy
ari-proxy copied to clipboard
Attempt to fix leak
This is an approach to fix leaking subscriptions.
I've tested it with about thousand normal calls and it show no leak using pprof yet. I'm going to test a lot more, but I would like your opinions.
Much of the code is pulled from ari/stdbus.
It still doesn't close unused NATS-subscriptions, but I find that not a big issue since they anyway are reused.