What version are you running?
RBTools 0.6.2
What's the URL of the page containing the problem?
N/A
What steps will reproduce the problem?
1. Update parameters of attached program to match your reviewboard credentials
2. Run attached program
What is the expected output? What do you see instead?
I expect only 1 connection to apicache.db since I only have 1 RBClient created which I tear down immediately. Instead I see it keeps growing. There is no way to tear down this RBClient.
What operating system are you using? What browser?
Python 2.7, 10.10
Please provide any additional information below.
This causes a huge problem where we run out of FDs in a long-running process (buildbot) where we create a new connection on every build. I can improve it slightly by trying to persist the client handle, but the problem is there's absolutely no way for me to tear down this resource.
Looking at the lsof, we see a *lot* of open file handles to ~/Library/Caches/rbtools/apicache.db