Comment 3 for bug 1683546

Revision history for this message
Thiago F. Pappacena (pappacena) wrote :

It is hard to confirm that what I've found is actually the cause of this problem, but looking at the traceback and my tests to port turnip to python3, maybe the cause of this bug could be simpler than we thought.

It seems that we are not explicitly closing the config file descriptor, and it seems that we read this configuration on every request. So *maybe* we could have too many open config FDs if we have several API calls and the GC isn't running frequently enough.

I'm sending a quick MP to check if closing the FD will make this problem go away; maybe we could cache the configuration too, to avoid reading it on every single request.