Last.fm plugin causes file descriptor starvation
Bug #1224410 reported by
Jussi Pakkanen
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grilo (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The last.fm plugin keeps a libsoup cache for its downloaded files. The default size is 10 MB. Since last.fm downloads small xml files and the cache keeps an open fd on every file, this uses up all available fds.
Attached is a patch. An alternative would be to disable the cache altogether.
Related branches
affects: | grilo-plugins (Ubuntu) → grilo (Ubuntu) |
To post a comment you must log in.
When you say that cache keeps the FD open, I guess you mean libsoup.
Have you really checked that indeed libsoup is keeping the FD open? Or is just a theory? Which version of libsoup are you using? This shouldn't happen (I've asked a libsoup maintainer), so if libsoup keeps the descriptors open, the bug is in libsoup.
Though the patch is correct, it is just a workaround, and doesn't fix the real problem, which would be in the libsoup.