Merge ~pappacena/turnip:fix-fd-leak into turnip:master
Proposed by
Thiago F. Pappacena
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Colin Watson | ||||
Approved revision: | b931681c40b4ce78e1eab1d52efc48c1bbe444a6 | ||||
Merge reported by: | Otto Co-Pilot | ||||
Merged at revision: | not available | ||||
Proposed branch: | ~pappacena/turnip:fix-fd-leak | ||||
Merge into: | turnip:master | ||||
Diff against target: |
177 lines (+18/-17) 8 files modified
httpserver.tac (+1/-2) packbackendserver.tac (+1/-2) packfrontendserver.tac (+1/-2) sshserver.tac (+1/-2) turnip/api/views.py (+1/-2) turnip/config.py (+11/-3) turnipserver.py (+1/-2) virtserver.tac (+1/-2) |
||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Colin Watson (community) | Approve | ||
Review via email: mp+379645@code.launchpad.net |
Commit message
Explicitly closing config file descriptor when reading configuration.
This causes "ResourceWarning: unclosed file" messages on python3 (but it's a silent problem on python 2). Since we have a bug about too many open file descriptors, this might help to fix that. See https:/
To post a comment you must log in.
cjwatson, making TurnipConfig a singleton.